Changeset 11333 for extensions/SmartAlbums/init_cat_list.php
- Timestamp:
- Jun 12, 2011, 5:56:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/init_cat_list.php
r11290 r11333 13 13 14 14 /* get categories with smart filters */ 15 $query = "SELECT DISTINCT id, name 16 FROM ".CATEGORIES_TABLE." AS c 17 INNER JOIN ".CATEGORY_FILTERS_TABLE." AS cf 18 ON c.id = cf.category_id"; 15 $query = ' 16 SELECT DISTINCT id, name 17 FROM '.CATEGORIES_TABLE.' AS c 18 INNER JOIN '.CATEGORY_FILTERS_TABLE.' AS cf 19 ON c.id = cf.category_id'; 19 20 if (!isset($_GET['parent_id'])) 20 21 { … … 24 25 else 25 26 { 26 $query .= '27 27 $query .= ' 28 WHERE uppercats LIKE \'%'.$_GET['parent_id'].'%\''; 28 29 } 30 $query .= ' 31 ;'; 29 32 30 33 $result = pwg_query($query); … … 45 48 { 46 49 $associated_images = smart_make_associations($cat); 47 array_push($page['infos'], l10n_args(get_l10n_args( 48 '%d photos associated to album «%s»', 49 array(count($associated_images), $name) 50 ))); 50 array_push( 51 $page['infos'], 52 l10n_args(get_l10n_args( 53 '%d photos associated to album «%s»', 54 array(count($associated_images), $name) 55 )) 56 ); 51 57 } 52 58 } … … 55 61 { 56 62 $associated_images = smart_make_associations($_GET['smart_generate']); 57 array_push($page['infos'], l10n_args(get_l10n_args( 58 '%d photos associated to album «%s»', 59 array(count($associated_images), $smart_cats[$_GET['smart_generate']]) 60 ))); 63 array_push( 64 $page['infos'], 65 l10n_args(get_l10n_args( 66 '%d photos associated to album «%s»', 67 array(count($associated_images), $smart_cats[$_GET['smart_generate']]) 68 )) 69 ); 61 70 } 62 71
Note: See TracChangeset
for help on using the changeset viewer.