summaryrefslogtreecommitdiffstats
path: root/app/template-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'app/template-html.lsp')
-rw-r--r--app/template-html.lsp6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp
index f042e23..884c5cc 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -116,13 +116,13 @@ Content-Type: text/html
</div>
<? local class="" ?>
- <? for k,v in pairs(submenu) do
- if v == pageinfo.action then
+ <? for k,v in pairs(submenu or {}) do
+ if submenu[k]["action"] == pageinfo.action then
class="class='selected'"
else
class=""
end
- io.write (string.format('\t\t\t<a %s href="%s">%s</a>\n',class,v,v ))
+ io.write (string.format('\t\t\t<a %s href="%s">%s</a>\n',class,submenu[k]["action"],submenu[k]["tab"] ))
end
?>