mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03: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:
parent
8ba29f8f46
commit
af372cb1f6
1 changed files with 2 additions and 2 deletions
|
@ -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']]))
|
if (isset($fs_plugin['extension']) and isset($merged_extensions[$fs_plugin['extension']]))
|
||||||
{
|
{
|
||||||
// Remove manually plugin from database
|
// Deactivate manually plugin from database
|
||||||
$query = 'DELETE FROM '.PLUGINS_TABLE.' WHERE id=\''.$plugin_id.'\'';
|
$query = 'UPDATE '.PLUGINS_TABLE.' SET state=\'inactive\' WHERE id=\''.$plugin_id.'\'';
|
||||||
pwg_query($query);
|
pwg_query($query);
|
||||||
|
|
||||||
$tpl_plugin['STATE'] = 'merged';
|
$tpl_plugin['STATE'] = 'merged';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue