]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/grouplogo.php
Fix ticket #3013: MAX_FILE_SIZE hidden fields were incorrectly placed
[quix0rs-gnu-social.git] / actions / grouplogo.php
index d2e8fd0e91bf290dda890e154ee238b1add0d759..e4a497cf8faafbbe4815c7e2a82868a0c8bb73b8 100644 (file)
@@ -228,13 +228,13 @@ class GrouplogoAction extends GroupDesignAction
         }
 
         $this->elementStart('li', array ('id' => 'settings_attach'));
-        $this->element('input', array('name' => 'avatarfile',
-                                      'type' => 'file',
-                                      'id' => 'avatarfile'));
         $this->element('input', array('name' => 'MAX_FILE_SIZE',
                                       'type' => 'hidden',
                                       'id' => 'MAX_FILE_SIZE',
                                       'value' => ImageFile::maxFileSizeInt()));
+        $this->element('input', array('name' => 'avatarfile',
+                                      'type' => 'file',
+                                      'id' => 'avatarfile'));
         $this->elementEnd('li');
         $this->elementEnd('ul');