Ignore:
Timestamp:
Jun 4, 2011, 11:34:59 AM (13 years ago)
Author:
mistic100
Message:

'Deactivate all' link now visible if all plugins are active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_installed.php

    r11048 r11227  
    8787$merged_plugins = false;
    8888$tpl_plugins = array();
     89$active_plugins = 0;
    8990
    9091foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
     
    123124    $tpl_plugin['DESC'] = l10n('THIS PLUGIN IS NOW PART OF PIWIGO CORE! DELETE IT NOW.');
    124125    $merged_plugins = true;
     126  }
     127 
     128  if ($tpl_plugin['STATE'] == 'active')
     129  {
     130    $active_plugins++;
    125131  }
    126132
     
    174180  'plugin_display' => $plugin_display,
    175181  'plugins' => $tpl_plugins,
     182  'active_plugins' => $active_plugins,
    176183  'PWG_TOKEN' => $pwg_token,
    177184));
Note: See TracChangeset for help on using the changeset viewer.