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

feature:2638- compatibility with Piwigo 2.4

File:
1 edited

Legend:

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

    r15345 r16011  
    160160global $prefixeTable;
    161161
    162 if(defined('IN_ADMIN'))
     162if(!defined('AJAX_CALL'))
    163163{
    164   //GMaps admin interface loaded and active only if in admin page
    165   include_once("gmaps_aim.class.inc.php");
    166   $obj=new GMaps_AIM($prefixeTable, __FILE__);
    167   $obj->initEvents();
    168 }
    169 else
    170 {
    171   if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED))
     164  if(defined('IN_ADMIN'))
    172165  {
    173     //GMaps public interface loaded and active only if in public page
    174     include_once("gmaps_pip.class.inc.php");
    175     $obj=new GMaps_PIP($prefixeTable, __FILE__);
     166    //GMaps admin interface loaded and active only if in admin page
     167    include_once("gmaps_aim.class.inc.php");
     168    $obj=new GMaps_AIM($prefixeTable, __FILE__);
     169    $obj->initEvents();
     170  }
     171  else
     172  {
     173    if(CommonPlugin::checkGPCRelease(GMAPS_GPC_NEEDED) and !mobile_theme())
     174    {
     175      //GMaps public interface loaded and active only if in public page
     176      include_once("gmaps_pip.class.inc.php");
     177      $obj=new GMaps_PIP($prefixeTable, __FILE__);
     178    }
    176179  }
    177180}
Note: See TracChangeset for help on using the changeset viewer.