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/cstat_aip.class.inc.php

    r15350 r16010  
    1717
    1818include_once('cstat_root.class.inc.php');
     19include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php');
    1920include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCTables.class.inc.php');
    2021include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCTabSheet.class.inc.php');
     
    6667      GPCRequestBuilder::loadJSandCSS();
    6768    }
    68     add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));
    69     GPCCss::applyGpcCss();
     69  }
     70
     71
     72  public function loadCSS()
     73  {
     74    parent::loadCSS();
     75    GPCCore::addUI('gpcCSS');
     76    GPCCore::addHeaderCSS('cstat.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().".css");
    7077  }
    7178
     
    7986    $this->returnAjaxContent();
    8087
     88    GPCCore::setTemplateToken();
    8189    $template->set_filename('plugin_admin_content', dirname(__FILE__)."/admin/cstat_admin.tpl");
    8290
     
    116124    global $ajax, $template;
    117125
    118     if(isset($_REQUEST['ajaxfct']))
     126    if($_REQUEST['ajaxfct']!='')
    119127    {
    120128      //$this->debug("AJAXFCT:".$_REQUEST['ajaxfct']);
     
    159167         $_GET['tab']=='config')) $_GET['tab']='stat';
    160168
     169    GPCAjax::checkToken();
    161170
    162171    if(isset($_REQUEST['ajaxfct']))
Note: See TracChangeset for help on using the changeset viewer.