Changeset 1820 for trunk/index.php
- Timestamp:
- Feb 15, 2007, 1:10:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r1815 r1820 69 69 } 70 70 71 if (isset($page['cat_nb_images']) 72 and $page['cat_nb_images'] > $user['nb_image_page']) 71 if ( count($page['items']) > $user['nb_image_page']) 73 72 { 74 73 $page['navigation_bar'] = create_navigation_bar( 75 74 duplicate_index_url(array(), array('start')), 76 $page['cat_nb_images'],75 count($page['items']), 77 76 $page['start'], 78 77 $user['nb_image_page'], … … 102 101 //-------------------------------------------------------------- category title 103 102 $template_title = $page['title']; 104 if ( isset($page['cat_nb_images']) and $page['cat_nb_images']> 0)105 { 106 $template_title.= ' ['. $page['cat_nb_images'].']';103 if ( count($page['items']) > 0) 104 { 105 $template_title.= ' ['.count($page['items']).']'; 107 106 } 108 107 … … 242 241 243 242 //------------------------------------------------------ main part : thumbnails 244 if (isset($page['thumbnails_include'])) 245 { 246 include(PHPWG_ROOT_PATH.$page['thumbnails_include']); 243 if ( 0==$page['start'] 244 and !isset($page['flat']) 245 and !isset($page['chronology_field']) 246 and ('recent_cats'==$page['section'] or 'categories'==$page['section']) 247 ) 248 { 249 include(PHPWG_ROOT_PATH.'include/category_cats.inc.php'); 250 } 251 if ( !empty($page['items']) ) 252 { 253 include(PHPWG_ROOT_PATH.'include/category_default.inc.php'); 247 254 } 248 255 //------------------------------------------------------- category informations … … 259 266 } 260 267 261 if ( isset($page['cat_nb_images']) and $page['cat_nb_images']> 0268 if ( count($page['items']) > 0 262 269 and $page['section'] != 'most_visited' 263 270 and $page['section'] != 'best_rated')
Note: See TracChangeset
for help on using the changeset viewer.