]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix bad function call (needed to be static)
authorZach Copley <zach@controlyourself.ca>
Wed, 24 Jun 2009 07:27:37 +0000 (00:27 -0700)
committerZach Copley <zach@controlyourself.ca>
Wed, 24 Jun 2009 07:27:37 +0000 (00:27 -0700)
lib/imagefile.php

index 0c93b257ed394d5433e6a2c8f147e18aad480587..52e4c4b2272d66e8a2b9e0de1612e0a73e7d308e 100644 (file)
@@ -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']);