summaryrefslogtreecommitdiff
path: root/lib/plugins/extension/helper
diff options
context:
space:
mode:
authorGerry Weißbach <gerry.w@gammaproduction.de>2015-05-07 11:30:00 +0200
committerGerry Weißbach <gerry.w@gammaproduction.de>2015-05-07 11:30:00 +0200
commitc594265e447bf705dae05f5e59560ea4c3afea0b (patch)
treef51c1877ae20c8d7a398d70df5ac45f6289a3393 /lib/plugins/extension/helper
parent95e3f389247c53b580d3dc59b26d4bf89ef6ae3b (diff)
downloadrpg-c594265e447bf705dae05f5e59560ea4c3afea0b.tar.gz
rpg-c594265e447bf705dae05f5e59560ea4c3afea0b.tar.bz2
Add class name using tab name
Diffstat (limited to 'lib/plugins/extension/helper')
-rw-r--r--lib/plugins/extension/helper/gui.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/extension/helper/gui.php b/lib/plugins/extension/helper/gui.php
index 3a0f0c589..4ec6fec85 100644
--- a/lib/plugins/extension/helper/gui.php
+++ b/lib/plugins/extension/helper/gui.php
@@ -144,11 +144,11 @@ class helper_plugin_extension_gui extends DokuWiki_Plugin {
foreach($this->tabs as $tab) {
$url = $this->tabURL($tab);
if($this->currentTab() == $tab) {
- $class = 'class="active"';
+ $class = ' active';
} else {
$class = '';
}
- echo '<li '.$class.'><a href="'.$url.'">'.$this->getLang('tab_'.$tab).'</a></li>';
+ echo '<li class="'.$tab.$class.'"><a href="'.$url.'">'.$this->getLang('tab_'.$tab).'</a></li>';
}
echo '</ul>';
}