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/main.inc.php

    r15343 r16007  
    282282
    283283
    284 if(defined('IN_ADMIN'))
     284if(!defined('AJAX_CALL'))
    285285{
    286   //AMD admin part loaded and active only if in admin page
    287   include_once("amd_aim.class.inc.php");
    288   $obj = new AMD_AIM($prefixeTable, __FILE__);
    289   $obj->initEvents();
    290   set_plugin_data($plugin['id'], $obj);
    291 }
    292 else
    293 {
    294   //AMD public part loaded and active only if in public page and if GPC is up to date
    295   if(CommonPlugin::checkGPCRelease(3,3,2))
     286  if(defined('IN_ADMIN'))
    296287  {
    297     include_once("amd_pip.class.inc.php");
    298     $obj = new AMD_PIP($prefixeTable, __FILE__);
     288    //AMD admin part loaded and active only if in admin page
     289    include_once("amd_aim.class.inc.php");
     290    $obj = new AMD_AIM($prefixeTable, __FILE__);
     291    $obj->initEvents();
    299292    set_plugin_data($plugin['id'], $obj);
    300293  }
     294  else
     295  {
     296    //AMD public part loaded and active only if in public page and if GPC is up to date
     297    if(CommonPlugin::checkGPCRelease(AMD_GPC_NEEDED) and !mobile_theme())
     298    {
     299      include_once("amd_pip.class.inc.php");
     300      $obj = new AMD_PIP($prefixeTable, __FILE__);
     301      set_plugin_data($plugin['id'], $obj);
     302    }
     303  }
    301304}
    302305
Note: See TracChangeset for help on using the changeset viewer.