Changeset 6975 for extensions/GrumPluginClasses/main.inc.php
- Timestamp:
- Sep 20, 2010, 12:42:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/main.inc.php
r6948 r6975 104 104 105 105 include_once('gpc_version.inc.php'); // => Don't forget to update this file !! 106 include_once(GPC_PATH.'classes/GPCCore.class.inc.php'); 106 107 107 108 global $prefixeTable; 109 110 111 112 $config=Array(); 113 GPCCore::loadConfig('gpc', $config); 114 115 if(!isset($config['installed'])) $config['installed']='03.01.00'; 116 if($config['installed']!=GPC_VERSION2) 117 { 118 /* the plugin was updated without being deactivated 119 * deactivate + activate the plugin to process the database upgrade 120 */ 121 include(GPC_PATH."gpc_install.class.inc.php"); 122 $gpc=new GPC_Install($prefixeTable, __FILE__); 123 $gpc->deactivate(); 124 $gpc->activate(); 125 } 126 108 127 109 128 if(defined('IN_ADMIN'))
Note: See TracChangeset
for help on using the changeset viewer.