Fix root path variable name
This commit is contained in:
parent
5fc66c64d4
commit
5a19e4022b
@ -78,7 +78,7 @@ if (badQuery()) {
|
|||||||
if (!isset($params['mainColor']) OR !is_string($params['mainColor']))
|
if (!isset($params['mainColor']) OR !is_string($params['mainColor']))
|
||||||
$params['mainColor'] = "#000000";
|
$params['mainColor'] = "#000000";
|
||||||
|
|
||||||
header('Location: ' . $instPath . "?" . http_build_query($params));
|
header('Location: ' . $rootPath . "?" . http_build_query($params));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
"name": "LibreQR",
|
"name": "LibreQR",
|
||||||
"short_name": "LibreQR",
|
"short_name": "LibreQR",
|
||||||
"description": "<?= $loc['subtitle'] ?>",
|
"description": "<?= $loc['subtitle'] ?>",
|
||||||
"start_url": "<?= $instPath; ?>",
|
"start_url": "<?= $rootPath; ?>",
|
||||||
"scope": "<?= $instPath; ?>",
|
"scope": "<?= $rootPath; ?>",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"theme_color": "<?= $variablesTheme["bg"]; ?>",
|
"theme_color": "<?= $variablesTheme["bg"]; ?>",
|
||||||
"background_color": "<?= $variablesTheme["bg"]; ?>",
|
"background_color": "<?= $variablesTheme["bg"]; ?>",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<Description><?= $loc['opensearch_actionName'] ?></Description>
|
<Description><?= $loc['opensearch_actionName'] ?></Description>
|
||||||
<?php
|
<?php
|
||||||
foreach($themeDimensionsIcons as $dimIcon) {
|
foreach($themeDimensionsIcons as $dimIcon) {
|
||||||
echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $instPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
|
echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $rootPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
|
||||||
} ?>
|
} ?>
|
||||||
<Language>*</Language>
|
<Language>*</Language>
|
||||||
<InputEncoding>UTF-8</InputEncoding>
|
<InputEncoding>UTF-8</InputEncoding>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
$bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : '%23FFFFFF'));
|
$bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : '%23FFFFFF'));
|
||||||
$mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : '%23000000'));
|
$mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : '%23000000'));
|
||||||
?>
|
?>
|
||||||
<Url type="text/html" template="<?= $instPath; ?>">
|
<Url type="text/html" template="<?= $rootPath; ?>">
|
||||||
<Param name="txt" value="{searchTerms}"/>
|
<Param name="txt" value="{searchTerms}"/>
|
||||||
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
||||||
<Param name="margin" value="<?= $margin ?>"/>
|
<Param name="margin" value="<?= $margin ?>"/>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
||||||
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
||||||
</Url>
|
</Url>
|
||||||
<Url type="application/opensearchdescription+xml" rel="self" template="<?= $instPath; ?>opensearch.php">
|
<Url type="application/opensearchdescription+xml" rel="self" template="<?= $rootPath; ?>opensearch.php">
|
||||||
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
||||||
<Param name="margin" value="<?= $margin ?>"/>
|
<Param name="margin" value="<?= $margin ?>"/>
|
||||||
<Param name="size" value="<?= $size ?>"/>
|
<Param name="size" value="<?= $size ?>"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user