Ignore:
Timestamp:
Feb 12, 2006, 10:52:16 PM (18 years ago)
Author:
plg
Message:

improvement: $pagewhere string replaced by $pageitems.
$pagewhere was an SQL clause used to retrieve pictures in #images
table. $pageitems is the list of picture ids of the current section.

improvement: function initialize_category replaced by dedicated included PHP
script include/section_init.inc.php. Code was refactored to improve
readibility and maintenability. $pagenavigation_bar is now build in
category.php instead of initialize_category function. Function check_cat_id
was also replaced by a piece of code in the new file. The file to include to
display thumbnails from category.php is now set in section_init.inc.php
instead of calculated in category.php.

bug fix: the test for rel="up" link for standard HTML navigation links in
category menu was not working with non numeric categories, such as
"favorites".

improvement: function check_login_authorization removed because useless but
in profile.php.

File:
1 edited

Legend:

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

    r1031 r1036  
    350350  $level = 0;
    351351  $menu = '';
    352  
     352
     353  // $page_cat value remains 0 for special sections
    353354  $page_cat = 0;
    354355  if (isset($page['cat']) and is_numeric($page['cat']) )
     
    384385    $url = PHPWG_ROOT_PATH.'category.php?cat='.$category['id'];
    385386    $menu.= "\n".'<a href="'.$url.'"';
    386     if ($category['id'] == $page['cat_id_uppercat'])
     387    if ($page_cat != 0
     388        and $category['id'] == $page['cat_id_uppercat'])
    387389    {
    388390      $menu.= ' rel="up"';
Note: See TracChangeset for help on using the changeset viewer.