Ignore:
Timestamp:
Nov 30, 2004, 9:26:44 PM (19 years ago)
Author:
plg
Message:
  • update_global_rank new function : far more intelligent update. Take into account the possiblity to have category tree not in category id ascending order
  • update global_rank when moving categories among the same parent
  • new function mass_updates : depending on MySQL version, create a temporary table, make one big insert and one big update by joining 2 tables (4.0.4 or above) or make 1 update per primary key
  • function update_category improved for representative_picture_id check : only one useful query (equivalent to NOT EXISTS) instead of N (N = number of categories) queries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r622 r625  
    209209    array_shift($categories);
    210210  }
     211  update_global_rank($_GET['parent_id']);
    211212}
    212213else if (isset($_GET['down']) and is_numeric($_GET['down']))
     
    268269    array_pop($categories);
    269270  }
     271  update_global_rank($_GET['parent_id']);
    270272}
    271273reset($categories);
Note: See TracChangeset for help on using the changeset viewer.