Fix OPDS link. re #40

This commit is contained in:
Sébastien Lucas 2013-04-29 16:47:16 +02:00
parent 33cad7ad98
commit ad52901226

View file

@ -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;
}
}