summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorSean Murphy <sgmurphy@gmail.com>2009-02-05 15:01:44 -0500
committerSean Murphy <sgmurphy@gmail.com>2009-02-05 15:01:44 -0500
commitd4bdb2dc1924e2753baa4cf1751acb08b6ed3cae (patch)
treefbe24952537eeb5ee255d8282658393d6636f923 /actions
parent746a5d75071a2a7c913c522ea78f2b88b87f4ce2 (diff)
Better fix for displaying max file size.
Diffstat (limited to 'actions')
-rw-r--r--actions/avatarsettings.php2
-rw-r--r--actions/grouplogo.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/avatarsettings.php b/actions/avatarsettings.php
index 79ca6b789..139d85b4c 100644
--- a/actions/avatarsettings.php
+++ b/actions/avatarsettings.php
@@ -155,7 +155,7 @@ class AvatarsettingsAction extends AccountSettingsAction
$this->element('input', array('name' => 'MAX_FILE_SIZE',
'type' => 'hidden',
'id' => 'MAX_FILE_SIZE',
- 'value' => MAX_AVATAR_SIZE));
+ 'value' => ImageFile::maxFileSize(true)));
$this->elementEnd('li');
$this->elementEnd('ul');
diff --git a/actions/grouplogo.php b/actions/grouplogo.php
index 4be7c4e12..473303373 100644
--- a/actions/grouplogo.php
+++ b/actions/grouplogo.php
@@ -229,7 +229,7 @@ class GrouplogoAction extends Action
$this->element('input', array('name' => 'MAX_FILE_SIZE',
'type' => 'hidden',
'id' => 'MAX_FILE_SIZE',
- 'value' => MAX_AVATAR_SIZE));
+ 'value' => ImageFile::maxFileSize(true)));
$this->elementEnd('li');
$this->elementEnd('ul');