Changeset 16007 for extensions/AMetaData/main.inc.php
- Timestamp:
- Jun 24, 2012, 9:14:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/main.inc.php
r15343 r16007 282 282 283 283 284 if( defined('IN_ADMIN'))284 if(!defined('AJAX_CALL')) 285 285 { 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')) 296 287 { 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(); 299 292 set_plugin_data($plugin['id'], $obj); 300 293 } 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 } 301 304 } 302 305
Note: See TracChangeset
for help on using the changeset viewer.