Ignore:
Timestamp:
Sep 13, 2010, 8:48:17 PM (14 years ago)
Author:
grum
Message:

Update plugin version to 1.0.2
bug:1796, bug:1854 + update CStat for GPC 3.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ColorStat/cstat_rb_callback.class.inc.php

    r6210 r6893  
    2323
    2424  /**
     25   * the getImageId returns the name of the image id attribute
     26   * return String
     27   */
     28  static public function getImageId()
     29  {
     30    return("pci.image_id");
     31  }
     32
     33  /**
    2534   * the getSelect function must return an attribute list separated with a comma
    2635   *
     
    6069    }
    6170
    62     $colors=split(',', $param['colors']);
     71    $colors=explode(',', $param['colors']);
    6372    if(count($colors)>0)
    6473    {
     
    6675      {
    6776        if($returned!='') $returned.=" ".$param['mode']." ";
    68         $returned.=" pci.colors LIKE '%".trim($val)."%'";
     77        $returned.=" pci.analyzed='y' AND pci.colors LIKE '%".trim($val)."%'";
    6978      }
    7079    }
     
    8796
    8897
     98  /**
     99   * the getFilter function must return a ready to use where clause
     100   * this where clause is used to filter the cache when the used tables can
     101   * return more than one result
     102   *
     103   * the filter can be empty, can be equal to the where clause, or can be equal
     104   * to a sub part of the where clause
     105   *
     106   */
     107  static public function getFilter($param="")
     108  {
     109    return(self::getWhere($param));
     110  }
    89111
    90112  /**
Note: See TracChangeset for help on using the changeset viewer.