Ignore:
Timestamp:
Apr 21, 2010, 9:27:51 PM (14 years ago)
Author:
grum
Message:

Update plugin for Piwigo 2.1

File:
1 edited

Legend:

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

    r5790 r5935  
    2222
    2323include_once('amd_root.class.inc.php');
    24 include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/ajax.class.inc.php');
     24include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php');
    2525
    2626class AMD_PIP extends AMD_root
    2727{
    28   protected $ajax;
    29 
    3028  function AMD_PIP($prefixeTable, $filelocation)
    3129  {
    3230    parent::__construct($prefixeTable, $filelocation);
    33     $this->ajax = new Ajax();
    3431
    35     $this->load_config();
    36     $this->init_events();
     32    $this->loadConfig();
     33    $this->initEvents();
    3734  }
    3835
     
    4643    initialize events call for the plugin
    4744  */
    48   public function init_events()
     45  public function initEvents()
    4946  {
    50     parent::init_events();
     47    parent::initEvents();
    5148    add_event_handler('loc_begin_picture', array(&$this, 'loadMetadata'));
    5249  }
     
    162159
    163160    if($analyzed=='n' and
    164        $this->my_config['amd_FillDataBaseContinuously']=='y' and
    165        $this->my_config['amd_AllPicturesAreAnalyzed']=='n')
     161       $this->config['amd_FillDataBaseContinuously']=='y' and
     162       $this->config['amd_AllPicturesAreAnalyzed']=='n')
    166163    {
    167164      /* if picture is not analyzed, do analyze
Note: See TracChangeset for help on using the changeset viewer.