1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Bugtracker #3610, #3611, #3617 - sort out various nits on plugin install/upgrade/uninstall

This commit is contained in:
e107steved
2007-02-01 22:00:41 +00:00
parent 699641651a
commit 5cd5a0ae32
2 changed files with 121 additions and 58 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $
| $Revision: 1.3 $
| $Date: 2006-12-31 14:46:30 $
| $Author: e107coders $
| $Revision: 1.4 $
| $Date: 2007-02-01 22:00:41 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -180,7 +180,7 @@ if ($action == 'uninstall')
{
foreach($eplug_array_pref as $key => $val)
{
$plugin->manage_plugin_prefs('remove', $key, $val);
$plugin->manage_plugin_prefs('remove', $key, $eplug_folder, $val);
}
}
@@ -317,6 +317,22 @@ if ($action == 'upgrade') {
$plugin->manage_prefs('remove', $upgrade_remove_prefs);
}
if (is_array($upgrade_add_array_pref))
{
foreach($upgrade_add_array_pref as $key => $val)
{
$plugin->manage_plugin_prefs('add', $key, $eplug_folder, $val);
}
}
if (is_array($upgrade_remove_array_pref))
{
foreach($upgrade_remove_array_pref as $key => $val)
{
$plugin->manage_plugin_prefs('remove', $key, $eplug_folder, $val);
}
}
if (is_array($upgrade_add_user_prefs)) {
if (!is_object($sql)){ $sql = new db; }
$sql->db_Select("core", " e107_value", " e107_name='user_entended'");