aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2016-12-09 07:31:13 +0100
committerPim van den Berg2016-12-09 07:31:13 +0100
commit6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf (patch)
treee9d7810e290e679444d8cefb37b1454381571d8d
parentMerge pull request #140 from davidgiga1993/master (diff)
downloadapt-panopticon_cgp-6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf.zip
apt-panopticon_cgp-6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf.tar.gz
apt-panopticon_cgp-6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf.tar.bz2
apt-panopticon_cgp-6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf.tar.xz
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
-rw-r--r--inc/html.inc.php3
1 files changed, 1 insertions, 2 deletions
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;
96 96
97function html_end($footer = false) { 97function html_end($footer = false) {
98 global $CONFIG; 98 global $CONFIG;
99 $html_weburl = htmlentities($CONFIG['weburl']);
99 100
100 if ($footer) { 101 if ($footer) {
101 $git = '/usr/bin/git'; 102 $git = '/usr/bin/git';
@@ -111,8 +112,6 @@ function html_end($footer = false) {
111 $version = 'v'.$version[0]; 112 $version = 'v'.$version[0];
112 } 113 }
113 114
114 $html_weburl = htmlentities($CONFIG['weburl']);
115
116 echo <<<EOT 115 echo <<<EOT
117</div> 116</div>
118<div id="footer"> 117<div id="footer">