Ignore:
Timestamp:
Jan 13, 2007, 4:13:40 AM (17 years ago)
Author:
rvelices
Message:

very small improvements:

  • mass_inserts does not requires keys to start at 0
  • recent_cats categories are sorted by global_rank (consistency)
  • removed warning from page_header.php (when included from redirect)
  • added 2 template functions for plugins (get_var and concat_var)
  • removed unused code from profile.php
  • changed css width for tag selection (search page) from 55em to almost 100%
File:
1 edited

Legend:

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

    r1677 r1719  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | branch        : BSF (Best So Far)
     
    3838SELECT
    3939  id,name, representative_picture_id, comment, nb_images, uppercats,
    40   date_last, max_date_last, count_images, count_categories
     40  date_last, max_date_last, count_images, count_categories, global_rank
    4141  FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
    4242  ON id = cat_id and user_id = '.$user['id'].'
     
    152152}
    153153
     154if ($page['section']=='recent_cats')
     155{
     156  usort($categories, 'global_rank_compare');
     157}
    154158if (count($categories) > 0)
    155159{
Note: See TracChangeset for help on using the changeset viewer.