Ignore:
Timestamp:
Oct 6, 2011, 11:25:10 AM (13 years ago)
Author:
patdenice
Message:

Avoid error if several obsolet plugins have to be uninstalled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_installed.php

    r12033 r12359  
    139139  if (isset($fs_plugin['extension']) and isset($merged_extensions[$fs_plugin['extension']]))
    140140  {
    141     $plugins->perform_action('uninstall', $plugin_id);
     141    // Remove manually plugin from database
     142    $query = 'DELETE FROM '.PLUGINS_TABLE.' WHERE id=\''.$plugin_id.'\'';
     143    pwg_query($query);
     144
    142145    $tpl_plugin['STATE'] = 'merged';
    143146    $tpl_plugin['DESC'] = l10n('THIS PLUGIN IS NOW PART OF PIWIGO CORE! DELETE IT NOW.');
Note: See TracChangeset for help on using the changeset viewer.