Changeset 8970 for extensions
- Timestamp:
- Jan 29, 2011, 11:56:17 AM (14 years ago)
- Location:
- extensions/AMenuManager
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/admin/plugin_admin.php
r8962 r8970 15 15 if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } 16 16 17 include(AMM_PATH."amm_aip.class.inc.php");18 19 17 global $prefixeTable; 20 18 … … 23 21 $main_plugin_object = get_plugin_data($plugin_id); 24 22 25 $plugin_ai = new AMM_AIP($prefixeTable, $main_plugin_object->getFileLocation()); 23 if(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 } 30 else 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 26 40 $plugin_ai->manage(); 27 41 -
extensions/AMenuManager/amm_root.class.inc.php
r8962 r8970 644 644 645 645 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 } 646 665 647 666 -
extensions/AMenuManager/language/en_UK/plugin.lang.php
r8962 r8970 120 120 $lang['g002_album'] = "Album ⇒ menu"; 121 121 $lang['g002_setting_albums_menus'] = "Albums to convert to menu"; 122 $lang['gmaps_gpc_not_up_to_date']="It is necessary for the plugin that the <i>Grum Plugin Classes</i> version %s is installed. 123 Currently, version %s is installed: please proceed with the update version of the plugin <i>Grum Plugin Classes</i>."; 122 124 123 125 ?> -
extensions/AMenuManager/language/fr_FR/plugin.lang.php
r8962 r8970 119 119 $lang['g002_album'] = "Album ⇒ menu"; 120 120 $lang['g002_setting_albums_menus'] = "Album à convertir en menu"; 121 $lang['g002_gpc_not_up_to_date']="Il est nécessaire que le plugin <i>Grum Plugin Classes</i> version %s soit installé. 122 Actuellement, la version %s est installée : merci de procéder à la mise à jour de version du plugin <i>Grum Plugin Classes</i>."; 123 121 124 122 125 /* --- removed keys --- -
extensions/AMenuManager/main.inc.php
r8962 r8970 170 170 define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/'); 171 171 172 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); 172 173 include_once('amm_version.inc.php'); // => Don't forget to update this file !! 174 include_once('amm_root.class.inc.php'); 175 173 176 174 177 global $prefixeTable, $page; … … 185 188 else 186 189 { 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 } 191 199 } 192 200
Note: See TracChangeset
for help on using the changeset viewer.