Changeset 6106 for extensions/GrumPluginClasses/maintain.inc.php
- Timestamp:
- May 7, 2010, 10:21:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/maintain.inc.php
r5550 r6106 7 7 8 8 include_once('gpc_version.inc.php'); // => Don't forget to update this file !! 9 include_once('gpc_install.class.inc.php'); // => Don't forget to update this file !! 9 10 10 11 … … 12 13 function plugin_install($plugin_id, $plugin_version, &$errors) 13 14 { 15 global $prefixeTable; 16 17 $obj = new GPC_Install($prefixeTable, __FILE__); 18 $result=$obj->install(); 19 if(!$result) 20 { 21 array_push($errors, "error"); 22 } 23 unset($obj); 14 24 } 15 25 … … 24 34 function plugin_uninstall($plugin_id) 25 35 { 36 global $prefixeTable; 37 38 $obj = new GPC_Install($prefixeTable, __FILE__); 39 $result=$obj->uninstall(); 40 /* 41 * piwigo don't alllow to manage errors during the uninstall process... 42 if(!$result or is_string($result)) 43 { 44 array_push($errors, l10n($result)); 45 } 46 */ 47 unset($obj); 26 48 } 27 49
Note: See TracChangeset
for help on using the changeset viewer.