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/admin/plugin_admin.php

    r8962 r8970  
    1515if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); }
    1616
    17 include(AMM_PATH."amm_aip.class.inc.php");
    18 
    1917global $prefixeTable;
    2018
     
    2321$main_plugin_object = get_plugin_data($plugin_id);
    2422
    25 $plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->getFileLocation());
     23if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED))
     24{
     25  AMM_root::checkPluginRelease();
     26
     27  include(AMM_PATH."amm_aip.class.inc.php");
     28  $plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->getFileLocation());
     29}
     30else
     31{
     32  /*
     33   * plugin was upgraded, but GPC was not
     34   * display a page to inform user to upgrade GPC
     35   */
     36  include(AMM_PATH."amm_aip_release.class.inc.php");
     37  $plugin_ai = new AMM_AIPRelease($prefixeTable, $main_plugin_object->getFileLocation());
     38}
     39
    2640$plugin_ai->manage();
    2741
Note: See TracChangeset for help on using the changeset viewer.