Changeset 18165 for trunk/admin
- Timestamp:
- Sep 23, 2012, 1:19:26 PM (12 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r18164 r18165 223 223 case 'display' : 224 224 { 225 if (!preg_match($int_pattern, $_POST['nb_categories_page']) 226 or $_POST['nb_categories_page'] < 4) 227 { 228 array_push($page['errors'], l10n('The number of albums a page must be above 4.')); 229 } 225 230 foreach( $display_checkboxes as $checkbox) 226 231 { … … 423 428 'display', 424 429 array( 425 'picture_informations' => unserialize($conf['picture_informations']) 430 'picture_informations' => unserialize($conf['picture_informations']), 431 'NB_CATEGORIES_PAGE' => $conf['nb_categories_page'], 426 432 ), 427 433 true -
trunk/admin/themes/default/template/configuration.tpl
r18164 r18165 646 646 </label> 647 647 </li> 648 649 <li> 650 <label> 651 {'Number of albums per page'|@translate} 652 <input type="text" size="3" maxlength="4" name="nb_categories_page" id="nb_categories_page" value="{$display.NB_CATEGORIES_PAGE}"> 653 </label> 654 </li> 648 655 </ul> 649 656 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.