Fix a bad URL in OPDS catalog. re #40
このコミットが含まれているのは:
コミット
6512313733
1個のファイルの変更、1行の追加、0行の削除
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 {
|
||||||
|
|
読み込み中…
Add table
Add a link
新しいイシューから参照