Ignore:
Timestamp:
Jun 24, 2012, 9:15:21 PM (8 years ago)
Author:
grum
Message:

feature:2635- compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ASearchEngine/main.inc.php

    r15360 r16008  
    8585global $prefixeTable;
    8686
    87 if(defined('IN_ADMIN'))
     87if(!defined('AJAX_CALL'))
    8888{
    89   //ASE admin interface loaded and active only if in admin page
    90   include_once("ase_aim.class.inc.php");
    91   $obj=new ASE_AIM($prefixeTable, __FILE__);
    92   $obj->initEvents();
    93 }
    94 else
    95 {
    96   if(CommonPlugin::checkGPCRelease(ASE_GPC_NEEDED))
     89  if(defined('IN_ADMIN'))
    9790  {
    98     //ASE public interface loaded and active only if in public page
    99     include_once("ase_pip.class.inc.php");
    100     $obj=new ASE_PIP($prefixeTable, __FILE__);
     91    //ASE admin interface loaded and active only if in admin page
     92    include_once("ase_aim.class.inc.php");
     93    $obj=new ASE_AIM($prefixeTable, __FILE__);
     94    $obj->initEvents();
     95  }
     96  else
     97  {
     98    if(CommonPlugin::checkGPCRelease(ASE_GPC_NEEDED) and !mobile_theme())
     99    {
     100      //ASE public interface loaded and active only if in public page
     101      include_once("ase_pip.class.inc.php");
     102      $obj=new ASE_PIP($prefixeTable, __FILE__);
     103    }
    101104  }
    102105}
Note: See TracChangeset for help on using the changeset viewer.