summaryrefslogtreecommitdiff
path: root/lib/plugins/extension/helper/list.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-11 12:05:09 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-08-11 12:05:09 +0200
commit9597c3b83b2dbf2787bf9046c911f0cc17d29481 (patch)
tree56f5fcdb9f64b4e957ac17042cba3e7040b73867 /lib/plugins/extension/helper/list.php
parent7ca0915cf61dd8ff297bf1d3ebd6aafcab88a618 (diff)
downloadrpg-9597c3b83b2dbf2787bf9046c911f0cc17d29481.tar.gz
rpg-9597c3b83b2dbf2787bf9046c911f0cc17d29481.tar.bz2
just not handle enable/disable for templates for now
Diffstat (limited to 'lib/plugins/extension/helper/list.php')
-rw-r--r--lib/plugins/extension/helper/list.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/plugins/extension/helper/list.php b/lib/plugins/extension/helper/list.php
index ef589dedd..e33dbfa04 100644
--- a/lib/plugins/extension/helper/list.php
+++ b/lib/plugins/extension/helper/list.php
@@ -468,11 +468,9 @@ class helper_plugin_extension_list extends DokuWiki_Plugin {
$errors .= '<p class="permerror">'.$this->getLang($canmod).'</p>';
}
- if (!$extension->isProtected()) {
+ if (!$extension->isProtected() && !$extension->isTemplate()) { // no enable/disable for templates
if ($extension->isEnabled()) {
- if(!$extension->isTemplate()){ // templates can't be disabled, only another can be enabled
- $return .= $this->make_action('disable', $extension);
- }
+ $return .= $this->make_action('disable', $extension);
} else {
$return .= $this->make_action('enable', $extension);
}