X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fdesignsettings.php;h=d7da0b77d8cf3ca2811e1c35c8ce0d05c7d3c7b9;hb=eb7e3ee528e6276f5b7a1a090286130c30beb150;hp=90296a64da60066d66013e0d1b15c7899254e818;hpb=65eeb7cba530e45b8d8a25644505619e8af63971;p=quix0rs-gnu-social.git diff --git a/lib/designsettings.php b/lib/designsettings.php index 90296a64da..d7da0b77d8 100644 --- a/lib/designsettings.php +++ b/lib/designsettings.php @@ -98,6 +98,10 @@ class DesignSettingsAction extends AccountSettingsAction $this->element('legend', null, _('Change background image')); $this->elementStart('ul', 'form_data'); $this->elementStart('li'); + $this->element('input', array('name' => 'MAX_FILE_SIZE', + 'type' => 'hidden', + 'id' => 'MAX_FILE_SIZE', + 'value' => ImageFile::maxFileSizeInt())); $this->element('label', array('for' => 'design_background-image_file'), // TRANS: Label in form on profile design page. // TRANS: Field contains file name on user's computer that could be that user's custom profile background image. @@ -108,10 +112,6 @@ class DesignSettingsAction extends AccountSettingsAction // TRANS: Instructions for form on profile design page. $this->element('p', 'form_guide', _('You can upload your personal ' . 'background image. The maximum file size is 2MB.')); - $this->element('input', array('name' => 'MAX_FILE_SIZE', - 'type' => 'hidden', - 'id' => 'MAX_FILE_SIZE', - 'value' => ImageFile::maxFileSizeInt())); $this->elementEnd('li'); if (!empty($design->backgroundimage)) {