Changeset 11334 for extensions/SmartAlbums/include/init_cat_modify.php
- Timestamp:
- Jun 12, 2011, 7:54:34 PM (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/include/init_cat_modify.php
r11333 r11334 7 7 function smart_cat_modify() 8 8 { 9 global $template ;9 global $template, $page; 10 10 include_once(SMART_PATH.'include/functions.inc.php'); 11 11 … … 31 31 pwg_query('DELETE FROM '.IMAGE_CATEGORY_TABLE.' WHERE category_id = '.$cat_id.' AND smart = true;'); 32 32 pwg_query('DELETE FROM '.CATEGORY_FILTERS_TABLE.' WHERE category_id = '.$cat_id.';'); 33 set_random_representant(array($cat_id)); 33 34 } 34 35 /* no filter selected */
Note: See TracChangeset
for help on using the changeset viewer.