Ignore:
Timestamp:
Apr 10, 2011, 10:07:47 PM (13 years ago)
Author:
grum
Message:

bug:2146
Compatibility with Piwigo 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AStat/astat_aip.class.inc.php

    r6699 r10264  
    1515if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
    1616
    17 include_once('astat_aim.class.inc.php');
     17include_once('astat_root.class.inc.php');
    1818include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    1919include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php');
    2020
    21 class AStat_AIP extends AStat_AIM
     21class AStat_AIP extends AStat_root
    2222{
    2323  protected $tabsheet;
     
    6565  function initEvents()
    6666  {
    67     add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));
     67    add_event_handler('loc_end_page_header', array(&$this, 'applyCSS'));
    6868  }
    6969
     
    7373  Public classe functions
    7474  --------------------------------------------------------------------------- */
     75
     76  public function applyCSS()
     77  {
     78    GPCCore::addHeaderCSS(basename(dirname($this->getPluginNameFiles())), PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'css/'.$this->getPluginNameFiles().".css");
     79  }
     80
     81
    7582
    7683  /*
Note: See TracChangeset for help on using the changeset viewer.