From 15000026f3880484a00bde98b1f011c897190ebf Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 9 Nov 2012 04:08:10 +0000 Subject: Fixed hostname parameter scope by moving if statement --- app/template-html.lsp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/template-html.lsp b/app/template-html.lsp index 56d6d14..811a771 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -13,9 +13,11 @@ Content-Type: text/html -<% if pageinfo.skinned ~= "false" then %> <% local hostname = "" + +if pageinfo.skinned ~= "false" then + if viewlibrary and viewlibrary.dispatch_component then local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true) if result and result.value then -- cgit v1.2.3