- Timestamp:
- Oct 21, 2010, 11:43:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ASearchEngine/ase_rb_callback_category.class.inc.php
r7318 r7328 47 47 static public function getFrom($param="") 48 48 { 49 global $prefixeTable ;49 global $prefixeTable, $user; 50 50 51 return("( ".IMAGE_CATEGORY_TABLE." ase_pict JOIN ".CATEGORIES_TABLE." ase_pct52 ON ase_pict.category_id = ase_pct.id) ");51 return("((".IMAGE_CATEGORY_TABLE." ase_pict JOIN ".CATEGORIES_TABLE." ase_pct 52 ON ase_pict.category_id = ase_pct.id) JOIN ".USER_CACHE_CATEGORIES_TABLE." ase_pucc ON ase_pucc.cat_id = ase_pct.id AND ase_pucc.user_id='".$user['id']."') "); 53 53 } 54 54 … … 115 115 * ); 116 116 */ 117 $returned="<span style='font-weight:bold;'>".l10n('Category')."</span> : ".$attributes['categoryName']; 117 if(strpos($attributes['categoryName'], '#sep#')>0) 118 { 119 $cat=l10n('Categories'); 120 $attributes['categoryName']=str_replace('#sep#', ', ', $attributes['categoryName']); 121 } 122 else 123 { 124 $cat=l10n('Category'); 125 } 126 $returned="<span style='font-weight:bold;'>$cat</span> : ".$attributes['categoryName']; 118 127 119 128 return($returned);
Note: See TracChangeset
for help on using the changeset viewer.