Ignore:
Timestamp:
Jun 24, 2012, 9:16:25 PM (12 years ago)
Author:
grum
Message:

feature:2639- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ColorStat/main.inc.php

    r15344 r16010  
    9292else
    9393{
    94   //CStat public interface loaded and active only if in public page
    95   include_once("cstat_pip.class.inc.php");
    96   CStat_functions::init($prefixeTable);
    97   $obj=new CStat_PIP($prefixeTable, __FILE__);
    98   set_plugin_data($plugin['id'], $obj);
     94  if(CommonPlugin::checkGPCRelease(CSTAT_GPC_NEEDED) and !mobile_theme())
     95  {
     96    //CStat public interface loaded and active only if in public page
     97    include_once("cstat_pip.class.inc.php");
     98    CStat_functions::init($prefixeTable);
     99    $obj=new CStat_PIP($prefixeTable, __FILE__);
     100    set_plugin_data($plugin['id'], $obj);
     101  }
    99102}
    100103
Note: See TracChangeset for help on using the changeset viewer.