Changeset 16464


Ignore:
Timestamp:
07/07/12 22:08:15 (7 years ago)
Author:
grum
Message:

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

Location:
extensions/ColorStat
Files:
2 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"); 
  • extensions/ColorStat/cstat_aip_release.class.inc.php

    r6976 r16464  
    3535 
    3636  /* 
    37     initialize events call for the plugin 
    38   */ 
    39   public function initEvents() 
    40   { 
    41     parent::initEvents(); 
    42     add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS')); 
    43   } 
    44  
    45   /* 
    4637    display administration page 
    4738  */ 
     
    4940  { 
    5041    global $template; 
     42 
     43    GPCCore::setTemplateToken(); 
    5144 
    5245    $template->set_filename('plugin_admin_content', dirname($this->getFileLocation())."/admin/cstat_admin.tpl"); 
Note: See TracChangeset for help on using the changeset viewer.