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

feature:2637- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_pip.class.inc.php

    r15343 r16007  
    4848  public function initEvents()
    4949  {
    50     parent::initEvents();
     50    //parent::initEvents();
    5151    add_event_handler('loc_begin_picture', array(&$this, 'loadMetadata'));
    5252    add_event_handler('loc_end_page_tail', array(&$this, 'applyJS'));
     
    209209      $userDefined=preg_match('/^userDefined\./i', $key);
    210210
    211       if(($group!=$tagProperties['gName']) and
     211      if(($group!='AMD'.$tagProperties['groupId']) and
    212212         ( $keyExist or $userDefined) )
    213213      {
    214         $group=$tagProperties['gName'];
     214        $group='AMD'.$tagProperties['groupId'];
    215215        if(!isset($metadata[$group]))
    216216        {
     
    272272      );
    273273
     274      GPCCore::setTemplateToken();
    274275      $template->assign('datas', $datas);
    275276      $template->append('footer_elements', $template->parse('applyJS', true));
Note: See TracChangeset for help on using the changeset viewer.