Ignore:
Timestamp:
Jul 7, 2012, 10:08:15 PM (12 years ago)
Author:
grum
Message:

feature:2639 - compatibility with Piwigo 2.4
Fix bug blocking install process

File:
1 edited

Legend:

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

    r15344 r16464  
    4040  }
    4141
    42   /*
    43     initialize events call for the plugin
    44   */
    45   public function initEvents()
    46   {
    47     parent::initEvents();
    48     add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));
    49   }
     42
     43  public function loadCSS()
     44  {
     45    parent::loadCSS();
     46    GPCCore::addUI('gpcCSS');
     47    GPCCore::addHeaderCSS('cstat.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().".css");
     48  }
     49
     50
    5051
    5152  /*
     
    5859    $this->checkRequest();
    5960    $this->returnAjaxContent();
     61
     62    GPCCore::setTemplateToken();
    6063
    6164    $template->set_filename('plugin_admin_content', dirname($this->getFileLocation())."/admin/cstat_admin.tpl");
Note: See TracChangeset for help on using the changeset viewer.