| @@ 13-13 (lines=1) @@ | ||
| 10 | { |
|
| 11 | public function __construct($phref, $ptitle = NULL, $pfacetGroup = NULL, $pactiveFacet = FALSE) { |
|
| 12 | parent::__construct ($phref, Link::OPDS_PAGING_TYPE, "http://opds-spec.org/facet", $ptitle, $pfacetGroup, $pactiveFacet); |
|
| 13 | if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB)); |
|
| 14 | $this->href = parent::getScriptName() . $this->href; |
|
| 15 | } |
|
| 16 | } |
|
| @@ 13-13 (lines=1) @@ | ||
| 10 | { |
|
| 11 | public function __construct($phref, $prel = NULL, $ptitle = NULL) { |
|
| 12 | parent::__construct ($phref, Link::OPDS_NAVIGATION_TYPE, $prel, $ptitle); |
|
| 13 | if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB)); |
|
| 14 | if (!preg_match ("#^\?(.*)#", $this->href) && !empty ($this->href)) $this->href = "?" . $this->href; |
|
| 15 | if (preg_match ("/(bookdetail|getJSON).php/", parent::getScriptName())) { |
|
| 16 | $this->href = "index.php" . $this->href; |
|