summaryrefslogtreecommitdiff
path: root/lib/imagefile.php
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-06-26 15:42:37 +0800
committerJeffery To <jeffery.to@gmail.com>2009-06-26 15:42:37 +0800
commit71dc910a53eb2aba509c418e7ac0f8e9b94cba9a (patch)
treebf7299e5e55e69dc859a50df563e8ae59b56d4b4 /lib/imagefile.php
parent65f784120b45dc187e28313fa2c2dca2c976c150 (diff)
parent97ee517680979bf12e82eab99ecf943712fe97c9 (diff)
Merge branch '0.8.x' into notice-search-no-results
Diffstat (limited to 'lib/imagefile.php')
-rw-r--r--lib/imagefile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/imagefile.php b/lib/imagefile.php
index 0c93b257e..52e4c4b22 100644
--- a/lib/imagefile.php
+++ b/lib/imagefile.php
@@ -72,7 +72,8 @@ class ImageFile
break;
case UPLOAD_ERR_INI_SIZE:
case UPLOAD_ERR_FORM_SIZE:
- throw new Exception(sprintf(_('That file is too big. The maximum file size is %d.'), $this->maxFileSize()));
+ throw new Exception(sprintf(_('That file is too big. The maximum file size is %d.'),
+ ImageFile::maxFileSize()));
return;
case UPLOAD_ERR_PARTIAL:
@unlink($_FILES[$param]['tmp_name']);