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

feature:2640- compatibility with Piwigo 2.4

File:
1 edited

Legend:

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

    r15346 r16013  
    6868global $prefixeTable;
    6969
    70 if(defined('IN_ADMIN'))
     70if(!defined('AJAX_CALL'))
    7171{
    72   // HGram admin interface loaded and active only if in admin page
    73   include_once("hgram_aim.class.inc.php");
    74   $obj=new HGram_AIM($prefixeTable, __FILE__);
    75   $obj->initEvents();
    76   set_plugin_data($plugin['id'], $obj);
    77 }
    78 else
    79 {
    80   // HGram public interface loaded and active only if in public page
    81   include_once("hgram_pip.class.inc.php");
    82   $obj=new HGram_PIP($prefixeTable, __FILE__);
    83   set_plugin_data($plugin['id'], $obj);
     72  if(defined('IN_ADMIN'))
     73  {
     74    // HGram admin interface loaded and active only if in admin page
     75    include_once("hgram_aim.class.inc.php");
     76    $obj=new HGram_AIM($prefixeTable, __FILE__);
     77    $obj->initEvents();
     78    set_plugin_data($plugin['id'], $obj);
     79  }
     80  else
     81  {
     82    if(CommonPlugin::checkGPCRelease(HGRAM_GPC_NEEDED) and !mobile_theme())
     83    {
     84      // HGram public interface loaded and active only if in public page
     85      include_once("hgram_pip.class.inc.php");
     86      $obj=new HGram_PIP($prefixeTable, __FILE__);
     87      set_plugin_data($plugin['id'], $obj);
     88    }
     89  }
    8490}
    8591
    86 
    87 
    8892?>
Note: See TracChangeset for help on using the changeset viewer.