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

feature 2614: pagination on albums

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.