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

feature:2642- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_pip.class.inc.php

    r15366 r16006  
    1717
    1818include_once(PHPWG_PLUGINS_PATH.'AMenuManager/amm_root.class.inc.php');
    19 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php');
    2019
    2120class AMM_PIP extends AMM_root
     
    3130  {
    3231    parent::__construct($prefixeTable, $filelocation);
    33     $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css");
    3432
    3533    $this->users=new GPCUsers();
     
    4846    parent::initEvents();
    4947
     48    add_event_handler('blockmanager_register_blocks', array(&$this, 'registerBlocks') );
    5049    add_event_handler('blockmanager_prepare_display', array(&$this, 'blockmanagerSortBlocks') );
    5150    add_event_handler('blockmanager_apply', array(&$this, 'blockmanagerApply'), 45 );
    52     add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));
    5351    add_event_handler('loc_end_page_header', array(&$this, 'applyJS'));
    5452    add_event_handler('get_categories_menu_sql_where', array(&$this, 'buildMenuFromCat'), 75);
     53  }
     54
     55  public function loadCSS()
     56  {
     57    parent::loadCSS();
     58    GPCCore::addHeaderCSS('amm_main', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles()."2.css");
    5559  }
    5660
Note: See TracChangeset for help on using the changeset viewer.