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/user.inc.php

    r1023 r1036  
    6060}
    6161
    62 $use_cache = (defined('IN_ADMIN') and IN_ADMIN) ? false : true;
    63 $user = array_merge($user, getuserdata($user['id'], $use_cache));
     62$user = array_merge(
     63  $user,
     64  getuserdata(
     65    $user['id'],
     66    defined('IN_ADMIN') and IN_ADMIN ? false : true // use cache ?
     67    )
     68  );
    6469
    6570// properties of user guest are found in the configuration
Note: See TracChangeset for help on using the changeset viewer.