Ignore:
Timestamp:
Oct 21, 2010, 6:13:33 PM (14 years ago)
Author:
grum
Message:

fix bug on the rbuilder (post filtering system) and enhance some template & css properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/classes/GPCRequestBuilder.class.inc.php

    r7312 r7317  
    193193   * to a sub part of the where clause
    194194   *
     195   * in most case, return "" is the best solution
     196   *
    195197   */
    196198  static public function getFilter($param="")
    197199  {
    198     return(self::getWhere($param));
     200    //return(self::getWhere($param));
     201    return("");
    199202  }
    200203
     
    666669      foreach($val as $itemNumber => $param)
    667670      {
    668         $tmpBuild['FILTER'][$key][]='('.call_user_func(Array('RBCallBack'.$key, 'getFilter'), $param).')';
     671        $tmpFilter=call_user_func(Array('RBCallBack'.$key, 'getFilter'), $param);
     672
     673        if(trim($tmpFilter)!="") $tmpBuild['FILTER'][$key][]='('.$tmpFilter.')';
    669674      }
    670675    }
     
    13441349    $datas=Array(
    13451350      'dialogBox' => $dialogBox,
    1346       'themeName' => $template->get_themeconf('name'),
     1351      'themeName' => defined('IN_ADMIN')?$template->get_themeconf('name'):'',
    13471352    );
    13481353
Note: See TracChangeset for help on using the changeset viewer.