Changeset 12360 for trunk/admin


Ignore:
Timestamp:
Oct 6, 2011, 11:36:02 AM (12 years ago)
Author:
patdenice
Message:

It's better to only deactivate obsolete plugins on loading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_installed.php

    r12359 r12360  
    139139  if (isset($fs_plugin['extension']) and isset($merged_extensions[$fs_plugin['extension']]))
    140140  {
    141     // Remove manually plugin from database
    142     $query = 'DELETE FROM '.PLUGINS_TABLE.' WHERE id=\''.$plugin_id.'\'';
     141    // Deactivate manually plugin from database
     142    $query = 'UPDATE '.PLUGINS_TABLE.' SET state=\'inactive\' WHERE id=\''.$plugin_id.'\'';
    143143    pwg_query($query);
    144144
Note: See TracChangeset for help on using the changeset viewer.