From 6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 9 Dec 2016 07:31:13 +0100 Subject: inc/html: fix php notice about html_weburl when type is canvas Fixes: > PHP Notice: Undefined variable: html_weburl in inc/html.inc.php on line 131 Mentioned in #132 Closes: #141 --- inc/html.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index 7312601..b9d1727 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -96,6 +96,7 @@ EOT; function html_end($footer = false) { global $CONFIG; + $html_weburl = htmlentities($CONFIG['weburl']); if ($footer) { $git = '/usr/bin/git'; @@ -111,8 +112,6 @@ function html_end($footer = false) { $version = 'v'.$version[0]; } - $html_weburl = htmlentities($CONFIG['weburl']); - echo <<