From 5a19e4022beac62fbf7a665c4eaa24622943f985 Mon Sep 17 00:00:00 2001 From: Miraty Date: Tue, 3 Nov 2020 21:28:29 +0100 Subject: [PATCH] Fix root path variable name --- index.php | 2 +- manifest.php | 4 ++-- opensearch.php | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 73b6142..bcf0314 100755 --- a/index.php +++ b/index.php @@ -78,7 +78,7 @@ if (badQuery()) { if (!isset($params['mainColor']) OR !is_string($params['mainColor'])) $params['mainColor'] = "#000000"; - header('Location: ' . $instPath . "?" . http_build_query($params)); + header('Location: ' . $rootPath . "?" . http_build_query($params)); exit; } diff --git a/manifest.php b/manifest.php index 1e04f23..4abb10f 100755 --- a/manifest.php +++ b/manifest.php @@ -5,8 +5,8 @@ "name": "LibreQR", "short_name": "LibreQR", "description": "", - "start_url": "", - "scope": "", + "start_url": "", + "scope": "", "display": "standalone", "theme_color": "", "background_color": "", diff --git a/opensearch.php b/opensearch.php index b2b5182..9e08447 100755 --- a/opensearch.php +++ b/opensearch.php @@ -5,7 +5,7 @@ ' . $instPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png' . "\n"; + echo ' ' . $rootPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png' . "\n"; } ?> * UTF-8 @@ -16,7 +16,7 @@ $bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : '%23FFFFFF')); $mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : '%23000000')); ?> - + @@ -24,7 +24,7 @@ - +