Changeset 6893 for extensions/ColorStat


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

Location:
extensions/ColorStat
Files:
4 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  /**
  • extensions/ColorStat/cstat_version.inc.php

    r6258 r6893  
    1515  if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1616
    17   define('CSTAT_VERSION',  '1.0.1');
    18   define('CSTAT_VERSION2', '01.00.01');
     17  define('CSTAT_VERSION',  '1.0.2');
     18  define('CSTAT_VERSION2', '01.00.02');
    1919?>
  • extensions/ColorStat/main.inc.php

    r6258 r6893  
    22/*
    33Plugin Name: ColorStat
    4 Version: 1.0.1
     4Version: 1.0.2
    55Description: Allow to make stat on pictures colors
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=393
     
    2929|         |            |   . Constant not defined
    3030|         |            |
    31 |         |            |
    32 |         |            |
    33 |         |            |
    34 |         |            |
    35 |         |            |
     31| 1.0.2   | 2010/09/12 | * mantis bug:1796
     32|         |            |   . Images color-search broken
     33|         |            | * mantis bug:1854
     34|         |            |   . Not analyzed pictures are selected
     35|         |            | * update the plugin to request builder v 1.1.0
    3636|         |            |
    3737|         |            |
  • extensions/ColorStat/maintain.inc.php

    r6107 r6893  
    2626----------------------------------------------------------------------------- */
    2727$gpc_installed=false;
    28 $gpcNeeded="3.1.0";
     28$gpcNeeded="3.2.0";
    2929if(file_exists(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'))
    3030{
    3131  include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
    32   // need GPC release greater or equal than 3.1.0
    33   if(CommonPlugin::checkGPCRelease(3,1,0))
     32  // need GPC release greater or equal than 3.2.0
     33  if(CommonPlugin::checkGPCRelease(3,2,0))
    3434  {
    3535    include_once('cstat_install.class.inc.php');
Note: See TracChangeset for help on using the changeset viewer.