diff options
| author | Pim van den Berg | 2016-12-09 07:31:13 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2016-12-09 07:31:13 +0100 |
| commit | 6ff91880cef2df00a18db0eb7a48e81c8b3fcbbf (patch) | |
| tree | e9d7810e290e679444d8cefb37b1454381571d8d /inc/html.inc.php | |
| parent | Merge pull request #140 from davidgiga1993/master (diff) | |
| download | apt-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
Diffstat (limited to 'inc/html.inc.php')
| -rw-r--r-- | inc/html.inc.php | 3 |
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 | ||
| 97 | function html_end($footer = false) { | 97 | function 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"> |
