Changeset 2586 for trunk/include


Ignore:
Timestamp:
Sep 25, 2008, 2:39:12 AM (16 years ago)
Author:
rvelices
Message:
  • sql optim: do not include category_cats (which makes a query) if current category does not have children (info known when building menubar)
  • in index.php - fill the template completely before including menubar/category_cats/thumbnails (some themes might want to use in the menubar some vars ...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_category.inc.php

    r2572 r2586  
    104104  {
    105105    array_push($cats, $row);
     106    if ($row['id']==@$page['category']['id']) //save the number of subcats for later optim
     107      $page['category']['count_categories'] = $row['count_categories'];
    106108  }
    107109  usort($cats, 'global_rank_compare');
Note: See TracChangeset for help on using the changeset viewer.