Ignore:
Timestamp:
Oct 21, 2010, 11:43:45 PM (14 years ago)
Author:
grum
Message:

fix bugs, add functionnalities and update css

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ASearchEngine/ase_rb_callback_category.class.inc.php

    r7318 r7328  
    4747  static public function getFrom($param="")
    4848  {
    49     global $prefixeTable;
     49    global $prefixeTable, $user;
    5050
    51     return("(".IMAGE_CATEGORY_TABLE." ase_pict JOIN ".CATEGORIES_TABLE." ase_pct
    52       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']."') ");
    5353  }
    5454
     
    115115     *    );
    116116     */
    117     $returned="<span style='font-weight:bold;'>".l10n('Category')."</span>&nbsp;:&nbsp;".$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>&nbsp;:&nbsp;".$attributes['categoryName'];
    118127
    119128    return($returned);
Note: See TracChangeset for help on using the changeset viewer.