Ignore:
Timestamp:
Jan 29, 2011, 11:56:17 AM (13 years ago)
Author:
grum
Message:

release 3.0.0
config autoupdated when plugin is updated (not necessary to deactivate/activate the plugin)

File:
1 edited

Legend:

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

    r8962 r8970  
    170170define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
    171171
     172include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
    172173include_once('amm_version.inc.php'); // => Don't forget to update this file !!
     174include_once('amm_root.class.inc.php');
     175
    173176
    174177global $prefixeTable, $page;
     
    185188else
    186189{
    187   //AMM public part loaded and active only if in public page
    188   include_once("amm_pip.class.inc.php");
    189   $obj = new AMM_PIP($prefixeTable, __FILE__);
    190   set_plugin_data($plugin['id'], $obj);
     190  if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED))
     191  {
     192    AMM_root::checkPluginRelease();
     193
     194    //AMM public part loaded and active only if in public page
     195    include_once("amm_pip.class.inc.php");
     196    $obj = new AMM_PIP($prefixeTable, __FILE__);
     197    set_plugin_data($plugin['id'], $obj);
     198  }
    191199}
    192200
Note: See TracChangeset for help on using the changeset viewer.