diff options
author | Gerry Weißbach <gerry.w@gammaproduction.de> | 2015-05-07 11:30:00 +0200 |
---|---|---|
committer | Gerry Weißbach <gerry.w@gammaproduction.de> | 2015-05-07 11:30:00 +0200 |
commit | c594265e447bf705dae05f5e59560ea4c3afea0b (patch) | |
tree | f51c1877ae20c8d7a398d70df5ac45f6289a3393 /lib/plugins/extension/helper/gui.php | |
parent | 95e3f389247c53b580d3dc59b26d4bf89ef6ae3b (diff) | |
download | rpg-c594265e447bf705dae05f5e59560ea4c3afea0b.tar.gz rpg-c594265e447bf705dae05f5e59560ea4c3afea0b.tar.bz2 |
Add class name using tab name
Diffstat (limited to 'lib/plugins/extension/helper/gui.php')
-rw-r--r-- | lib/plugins/extension/helper/gui.php | 4 |
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>'; } |