Changeset 12877 for trunk/profile.php
- Timestamp:
- Jan 12, 2012, 6:57:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/profile.php
r12764 r12877 50 50 { 51 51 $fields = array( 52 'nb_image_page', ' maxwidth', 'maxheight', 'expand',52 'nb_image_page', 'expand', 53 53 'show_nb_comments', 'show_nb_hits', 'recent_period', 'show_nb_hits' 54 54 ); … … 125 125 } 126 126 127 if ($_POST['maxwidth'] != ''128 and (!preg_match($int_pattern, $_POST['maxwidth'])129 or $_POST['maxwidth'] < 50))130 {131 $errors[] = l10n('Maximum width must be a number superior to 50');132 }133 if ($_POST['maxheight']134 and (!preg_match($int_pattern, $_POST['maxheight'])135 or $_POST['maxheight'] < 50))136 {137 $errors[] = l10n('Maximum height must be a number superior to 50');138 }139 127 // periods must be integer values, they represents number of days 140 128 if (!preg_match($int_pattern, $_POST['recent_period']) … … 222 210 // update user "additional" informations (specific to Piwigo) 223 211 $fields = array( 224 'nb_image_page', 'language', 'maxwidth', 'maxheight',212 'nb_image_page', 'language', 225 213 'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'theme' 226 214 ); … … 269 257 'NB_IMAGE_PAGE'=>$userdata['nb_image_page'], 270 258 'RECENT_PERIOD'=>$userdata['recent_period'], 271 'MAXWIDTH'=>@$userdata['maxwidth'],272 'MAXHEIGHT'=>@$userdata['maxheight'],273 259 'EXPAND' =>$userdata['expand'] ? 'true' : 'false', 274 260 'NB_COMMENTS'=>$userdata['show_nb_comments'] ? 'true' : 'false',
Note: See TracChangeset
for help on using the changeset viewer.