aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/admin/tabsheet.tpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/yoga/admin/tabsheet.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/yoga/admin/tabsheet.tpl b/template/yoga/admin/tabsheet.tpl
index 930771916..a89adfd8d 100644
--- a/template/yoga/admin/tabsheet.tpl
+++ b/template/yoga/admin/tabsheet.tpl
@@ -1,8 +1,8 @@
{* $Id$ *}
{if isset($tabsheet) and count($tabsheet)}
<ul class="tabsheet">
-{foreach from=$tabsheet item=tab}
- <li class="{if isset($tab.selected) and $tab.selected}selected_tab{else}normal_tab{/if}"><a href="{$tab.url}">{$tab.caption}</a></li>
+{foreach from=$tabsheet key=name item=sheet}
+ <li class="{if ($name == $tabsheet_selected)}selected_tab{else}normal_tab{/if}"><a href="{$sheet.url}">{$sheet.caption}</a></li>
{/foreach}
</ul>
{/if} \ No newline at end of file