Fix bookdetail when Fancyapps is enabled. re #40

This commit is contained in:
Sébastien Lucas 2013-04-04 21:11:45 +02:00
parent ff95d618db
commit b34af8ae1f

View file

@ -225,8 +225,12 @@ class LinkNavigation extends Link
public function __construct($phref, $prel = NULL, $ptitle = NULL) { public function __construct($phref, $prel = NULL, $ptitle = NULL) {
parent::__construct ($phref, Link::OPDS_NAVIGATION_TYPE, $prel, $ptitle); parent::__construct ($phref, Link::OPDS_NAVIGATION_TYPE, $prel, $ptitle);
if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB)); if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB));
if (preg_match ("/bookdetail.php/", $_SERVER["SCRIPT_NAME"])) {
$this->href = "index.php" . $this->href;
} else {
$this->href = $_SERVER["SCRIPT_NAME"] . $this->href; $this->href = $_SERVER["SCRIPT_NAME"] . $this->href;
} }
}
} }
class LinkFacet extends Link class LinkFacet extends Link