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/amm_root.class.inc.php

    r8962 r8970  
    644644
    645645
     646  static public function checkPluginRelease()
     647  {
     648    global $template;
     649
     650    $config=Array();
     651    GPCCore::loadConfig('amm', $config);
     652
     653    if($config['installed']!=AMM_VERSION2)
     654    {
     655      /* the plugin was updated without being deactivated
     656       * deactivate + activate the plugin to process the database upgrade
     657       */
     658      include(AMM_PATH."amm_install.class.inc.php");
     659      $amm=new AMM_Install($prefixeTable, dirname(__FILE__));
     660      $amm->deactivate();
     661      $amm->activate();
     662      $template->delete_compiled_templates();
     663    }
     664  }
    646665
    647666
Note: See TracChangeset for help on using the changeset viewer.