summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-core
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-02-09 13:17:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-02-09 13:17:26 +0000
commitb5026e65c0334f9d8afddb0a3ca1797ef2baff5c (patch)
tree11bbfe5c05510a9301bfb8eedfe8fc68b9b2687b /modules/admin-core
parent8dbb8a0ad386fd890f688109c44df0429c2af597 (diff)
libs/web: don't send Status: 500 in error500() if header is already sent
modules/admin-core: include template header only once
Diffstat (limited to 'modules/admin-core')
-rw-r--r--modules/admin-core/luasrc/view/header.htm8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/admin-core/luasrc/view/header.htm b/modules/admin-core/luasrc/view/header.htm
index 6625e46b0..77018b117 100644
--- a/modules/admin-core/luasrc/view/header.htm
+++ b/modules/admin-core/luasrc/view/header.htm
@@ -12,4 +12,10 @@ You may obtain a copy of the License at
$Id$
-%>
-<% include("themes/" .. theme .. "/header") %> \ No newline at end of file
+
+<%
+ if not luci.dispatcher.context.template_header_sent then
+ include("themes/" .. theme .. "/header")
+ luci.dispatcher.context.template_header_sent = true
+ end
+%>