mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-07 05:44:58 +02:00
It's better to only deactivate obsolete plugins on loading.
git-svn-id: http://piwigo.org/svn/trunk@12360 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user