Ignore:
Timestamp:
Apr 11, 2011, 12:30:56 PM (13 years ago)
Author:
patdenice
Message:

feature:2260
Keep only two states for plugins (active and inactive)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_list.php

    r10128 r10293  
    9898  else
    9999  {
    100     $tpl_plugin['STATE'] = 'uninstalled';
     100    $tpl_plugin['STATE'] = 'inactive';
    101101  }
    102102
    103103  if (isset($fs_plugin['extension']) and in_array($fs_plugin['extension'], $_SESSION['merged_extensions']))
    104104  {
    105     switch($tpl_plugin['STATE'])
    106     {
    107       case 'active': $plugins->perform_action('deactivate', $plugin_id);
    108       case 'inactive': $plugins->perform_action('uninstall', $plugin_id);
    109     }
     105    $plugins->perform_action('uninstall', $plugin_id);
    110106    $tpl_plugin['STATE'] = 'merged';
    111107    $tpl_plugin['DESC'] = l10n('THIS PLUGIN IS NOW PART OF PIWIGO CORE! DELETE IT NOW.');
     
    118114$template->append('plugin_states', 'active');
    119115$template->append('plugin_states', 'inactive');
    120 $template->append('plugin_states', 'uninstalled');
    121116
    122117if ($merged_plugins)
Note: See TracChangeset for help on using the changeset viewer.