Fix bookdetail when Fancyapps is enabled. re #40
This commit is contained in:
parent
ff95d618db
commit
b34af8ae1f
4
base.php
4
base.php
|
@ -225,8 +225,12 @@ 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));
|
||||
if (preg_match ("/bookdetail.php/", $_SERVER["SCRIPT_NAME"])) {
|
||||
$this->href = "index.php" . $this->href;
|
||||
} else {
|
||||
$this->href = $_SERVER["SCRIPT_NAME"] . $this->href;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class LinkFacet extends Link
|
||||
|
|
Loading…
Reference in a new issue