From ad52901226f709728402dcb40a4d072ca92b8f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Mon, 29 Apr 2013 16:47:16 +0200 Subject: [PATCH] Fix OPDS link. re #40 --- base.php | 1 + 1 file changed, 1 insertion(+) diff --git a/base.php b/base.php index 4954d67..21e0538 100644 --- a/base.php +++ b/base.php @@ -214,6 +214,7 @@ class LinkFacet extends Link { public function __construct($phref, $ptitle = NULL, $pfacetGroup = NULL, $pactiveFacet = FALSE) { parent::__construct ($phref, Link::OPDS_PAGING_TYPE, "http://opds-spec.org/facet", $ptitle, $pfacetGroup, $pactiveFacet); + if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB)); $this->href = $_SERVER["SCRIPT_NAME"] . $this->href; } }