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
1 changed files with 5 additions and 1 deletions

View File

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