Changeset 18165 for trunk/admin


Ignore:
Timestamp:
Sep 23, 2012, 1:19:26 PM (12 years ago)
Author:
mistic100
Message:

feature 2614: pagination on albums

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r18164 r18165  
    223223    case 'display' :
    224224    {
     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      }
    225230      foreach( $display_checkboxes as $checkbox)
    226231      {
     
    423428        'display',
    424429        array(
    425           'picture_informations' => unserialize($conf['picture_informations'])
     430          'picture_informations' => unserialize($conf['picture_informations']),
     431          'NB_CATEGORIES_PAGE' => $conf['nb_categories_page'],
    426432          ),
    427433        true
  • trunk/admin/themes/default/template/configuration.tpl

    r18164 r18165  
    646646      </label>
    647647    </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>
    648655  </ul>
    649656</fieldset>
Note: See TracChangeset for help on using the changeset viewer.