diff options
Diffstat (limited to 'plugins/PluginsAdmin')
-rw-r--r-- | plugins/PluginsAdmin/Controller.php | 5 | ||||
-rw-r--r-- | plugins/PluginsAdmin/templates/manage.tpl | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/plugins/PluginsAdmin/Controller.php b/plugins/PluginsAdmin/Controller.php index 3bc15b6bb3..425e426e10 100644 --- a/plugins/PluginsAdmin/Controller.php +++ b/plugins/PluginsAdmin/Controller.php @@ -29,8 +29,9 @@ class Piwik_PluginsAdmin_Controller extends Piwik_Controller foreach($listPlugins as $pluginName) { $oPlugin = Piwik_PluginsManager::getInstance()->loadPlugin($pluginName); - $plugins[$pluginName]= array( 'activated' => Piwik_PluginsManager::getInstance()->isPluginEnabled($pluginName), - 'info' => $oPlugin->getInformation() + $plugins[$pluginName]= array( 'activated' => Piwik_PluginsManager::getInstance()->isPluginEnabled($pluginName), + 'alwaysActivated' => Piwik_PluginsManager::getInstance()->isPluginAlwaysActivated($pluginName), + 'info' => $oPlugin->getInformation() ); } diff --git a/plugins/PluginsAdmin/templates/manage.tpl b/plugins/PluginsAdmin/templates/manage.tpl index 033c1793b9..6e2a91fc24 100644 --- a/plugins/PluginsAdmin/templates/manage.tpl +++ b/plugins/PluginsAdmin/templates/manage.tpl @@ -5,8 +5,8 @@ <table id="plugins"> <thead> - <th>Name</th> - <th>Description</th> + <th width="150px">Name</th> + <th width="400px">Description</th> <th>Author</th> <th>Version</th> <th>Action</th> @@ -20,12 +20,10 @@ <td>{$plugin.info.description} </td> <td class="center"><a href="{$plugin.info.homepage}">{$plugin.info.author}</a></td> <td>{$plugin.info.version}</td> - <td class="switch">{if $plugin.activated}<a href=?module=PluginsAdmin&action=deactivate&pluginName={$name}>Deactivate</a> + <td class="switch">{if $plugin.alwaysActivated}<span title="This plugin cannot be deactivated">Activated</span>{elseif $plugin.activated}<a href=?module=PluginsAdmin&action=deactivate&pluginName={$name}>Deactivate</a> {else}<a href=?module=PluginsAdmin&action=activate&pluginName={$name}>Activate</a>{/if}</td> </tr> {/foreach}
</tbody> </table> -
-<p><a href='?module=Home'>Back to Piwik homepage</a></p>
|