summaryrefslogtreecommitdiff
path: root/actions/avatarsettings.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-05 16:32:58 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-05 16:32:58 -0500
commit99d520b351cdcfd93901732228d3be3d9e0a442b (patch)
tree7ad6cc379930b74b5dc0b22fc808196ece4c5424 /actions/avatarsettings.php
parent383e6c730db5808b961f53bf39868053fca1fc32 (diff)
Two different functions for file size
Made two different functions for file size in ImageFile; one uses the other. Also, use sprintf() for gettext msgs.
Diffstat (limited to 'actions/avatarsettings.php')
-rw-r--r--actions/avatarsettings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/avatarsettings.php b/actions/avatarsettings.php
index 0f8122c07..5c702ecc0 100644
--- a/actions/avatarsettings.php
+++ b/actions/avatarsettings.php
@@ -75,7 +75,7 @@ class AvatarsettingsAction extends AccountSettingsAction
function getInstructions()
{
- return _('You can upload your personal avatar. The maximum file size is '.ImageFile::maxFileSize().'.');
+ return sprintf(_('You can upload your personal avatar. The maximum file size is %s.'), ImageFile::maxFileSize());
}
/**
@@ -155,7 +155,7 @@ class AvatarsettingsAction extends AccountSettingsAction
$this->element('input', array('name' => 'MAX_FILE_SIZE',
'type' => 'hidden',
'id' => 'MAX_FILE_SIZE',
- 'value' => ImageFile::maxFileSize(true)));
+ 'value' => ImageFile::maxFileSizeInt()));
$this->elementEnd('li');
$this->elementEnd('ul');