Fix the last remaining direct use of $_SERVER['QUERY_STRING'] (which can be empty with some webservers).
fix #133
This commit is contained in:
parent
2aaa7fbd19
commit
01b8f3b3c9
|
@ -121,7 +121,7 @@ class OPDSRenderer
|
||||||
self::getXmlStream ()->endElement ();
|
self::getXmlStream ()->endElement ();
|
||||||
$link = new LinkNavigation ("", "start", "Home");
|
$link = new LinkNavigation ("", "start", "Home");
|
||||||
self::renderLink ($link);
|
self::renderLink ($link);
|
||||||
$link = new LinkNavigation ("?" . $_SERVER['QUERY_STRING'], "self");
|
$link = new LinkNavigation ("?" . getQueryString (), "self");
|
||||||
self::renderLink ($link);
|
self::renderLink ($link);
|
||||||
$urlparam = "?";
|
$urlparam = "?";
|
||||||
if (!is_null (GetUrlParam (DB))) $urlparam = addURLParameter ($urlparam, DB, GetUrlParam (DB));
|
if (!is_null (GetUrlParam (DB))) $urlparam = addURLParameter ($urlparam, DB, GetUrlParam (DB));
|
||||||
|
@ -142,7 +142,7 @@ class OPDSRenderer
|
||||||
if ($page->containsBook () && !is_null ($config['cops_books_filter']) && count ($config['cops_books_filter']) > 0) {
|
if ($page->containsBook () && !is_null ($config['cops_books_filter']) && count ($config['cops_books_filter']) > 0) {
|
||||||
$Urlfilter = getURLParam ("tag", "");
|
$Urlfilter = getURLParam ("tag", "");
|
||||||
foreach ($config['cops_books_filter'] as $lib => $filter) {
|
foreach ($config['cops_books_filter'] as $lib => $filter) {
|
||||||
$link = new LinkFacet ("?" . addURLParameter ($_SERVER['QUERY_STRING'], "tag", $filter), $lib, localize ("tagword.title"), $filter == $Urlfilter);
|
$link = new LinkFacet ("?" . addURLParameter (getQueryString (), "tag", $filter), $lib, localize ("tagword.title"), $filter == $Urlfilter);
|
||||||
self::renderLink ($link);
|
self::renderLink ($link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue