]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use $param instead of hardcoded 'attach' name.
authorCraig Andrews <candrews@integralblue.com>
Wed, 24 Mar 2010 02:42:30 +0000 (22:42 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 24 Mar 2010 02:42:30 +0000 (22:42 -0400)
lib/mediafile.php

index 10d90d0081e877f5742194387a7019b5cad5f084..1c96c42d7a7245d8a9ac3537ddddd08cfa367839 100644 (file)
@@ -171,7 +171,7 @@ class MediaFile
             return;
         }
 
-        if (!MediaFile::respectsQuota($user, $_FILES['attach']['size'])) {
+        if (!MediaFile::respectsQuota($user, $_FILES[$param]['size'])) {
 
             // Should never actually get here