summaryrefslogtreecommitdiff
path: root/lib/imagefile.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-06-24 00:27:37 -0700
committerZach Copley <zach@controlyourself.ca>2009-06-24 00:27:37 -0700
commitb702461f6942017d1ae4a08c6701998db14ce536 (patch)
tree946e72c0069c1cca2a85d112914d7593d98c3c4e /lib/imagefile.php
parent98f518b9af43dd07b97373e6e71be08d553bb21b (diff)
fix bad function call (needed to be static)
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']);