aboutsummaryrefslogtreecommitdiffstats
path: root/admin/plugins_installed.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-10-06 09:36:02 +0000
committerpatdenice <patdenice@piwigo.org>2011-10-06 09:36:02 +0000
commitaf372cb1f651983e1deb5a520184b2f31e8d6575 (patch)
treef98f8b18d870c4055f7a7696f9eba496be8a9ad3 /admin/plugins_installed.php
parent8ba29f8f4665fa396618c5a67d27610580375e67 (diff)
It's better to only deactivate obsolete plugins on loading.
git-svn-id: http://piwigo.org/svn/trunk@12360 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/plugins_installed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/plugins_installed.php b/admin/plugins_installed.php
index 9da31ccb5..e12405dd8 100644
--- a/admin/plugins_installed.php
+++ b/admin/plugins_installed.php
@@ -138,8 +138,8 @@ foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
if (isset($fs_plugin['extension']) and isset($merged_extensions[$fs_plugin['extension']]))
{
- // Remove manually plugin from database
- $query = 'DELETE FROM '.PLUGINS_TABLE.' WHERE id=\''.$plugin_id.'\'';
+ // Deactivate manually plugin from database
+ $query = 'UPDATE '.PLUGINS_TABLE.' SET state=\'inactive\' WHERE id=\''.$plugin_id.'\'';
pwg_query($query);
$tpl_plugin['STATE'] = 'merged';