From b5026e65c0334f9d8afddb0a3ca1797ef2baff5c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 9 Feb 2009 13:17:26 +0000 Subject: libs/web: don't send Status: 500 in error500() if header is already sent modules/admin-core: include template header only once --- modules/admin-core/luasrc/view/header.htm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/admin-core/luasrc/view') diff --git a/modules/admin-core/luasrc/view/header.htm b/modules/admin-core/luasrc/view/header.htm index 6625e46b03..77018b1173 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 +%> -- cgit v1.2.3