From 31ba7c5981bf137fa1ddec5cb78e3938944da347 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 4 Jan 2020 18:23:59 +1000 Subject: Fix up static URLs that got broken going through php.cgi. --- inc/html.inc.php | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'inc') diff --git a/inc/html.inc.php b/inc/html.inc.php index bc38b24..b9cae9c 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -12,6 +12,7 @@ function html_start() { $path = htmlentities(breadcrumbs()); $html_weburl = htmlentities($CONFIG['weburl']); + $html_staticurl = htmlentities($CONFIG['staticurl']); echo << @@ -20,10 +21,10 @@ function html_start() { CGP{$path} - - - - + + + + EOT; if (isset($CONFIG['page_refresh']) && is_numeric($CONFIG['page_refresh'])) { @@ -35,24 +36,24 @@ EOT; if ($CONFIG['graph_type'] == 'canvas') { echo << - - - - - - - - - + + + + + + + + + + EOT; } if ($CONFIG['showtime']) { echo << - + + EOT; } @@ -62,7 +63,7 @@ echo << EOT; @@ -97,6 +98,7 @@ EOT; function html_end($footer = false) { global $CONFIG; $html_weburl = htmlentities($CONFIG['weburl']); + $html_staticurl = htmlentities($CONFIG['staticurl']); if ($footer) { $git = '/usr/bin/git'; @@ -115,7 +117,7 @@ function html_end($footer = false) { echo << EOT; @@ -127,7 +129,7 @@ EOT; $js_async = 'false'; } echo << + -- cgit v1.1