Fix a bad URL in OPDS catalog. re #40
Šis iesūtījums ir iekļauts:
vecāks
d35b7d4dc4
iesūtījums
6512313733
1 izmainītas datnes ar 1 papildinājumiem un 0 izdzēšanām
1
base.php
1
base.php
|
@ -202,6 +202,7 @@ 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 ("#^\?(.*)#", $this->href) && !empty ($this->href)) $this->href = "?" . $this->href;
|
||||||
if (preg_match ("/bookdetail.php/", $_SERVER["SCRIPT_NAME"])) {
|
if (preg_match ("/bookdetail.php/", $_SERVER["SCRIPT_NAME"])) {
|
||||||
$this->href = "index.php" . $this->href;
|
$this->href = "index.php" . $this->href;
|
||||||
} else {
|
} else {
|
||||||
|
|
Notiek ielāde…
Pievienot tabulu
Pievienot saiti
Atsaukties jaunā pieteikumā