From 9cf33d7d1c2a7da85e6a3e3b345da0945afcf0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 25 Oct 2013 08:07:42 +0200 Subject: [PATCH] Forgot two while fixing the ids. re #104 --- OPDS_renderer.php | 2 +- base.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPDS_renderer.php b/OPDS_renderer.php index c36d008..60f3636 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -97,7 +97,7 @@ class OPDSRenderer if ($page->idPage) { $idPage = $page->idPage; - if (!is_null (GetUrlParam (DB))) $idPage = GetUrlParam (DB) . ":" . $idPage; + if (!is_null (GetUrlParam (DB))) $idPage = str_replace ("cops:", "cops:" . GetUrlParam (DB) . ":", $idPage); self::getXmlStream ()->text ($idPage); } else diff --git a/base.php b/base.php index 23e80e9..e119ffe 100644 --- a/base.php +++ b/base.php @@ -443,7 +443,7 @@ class Page $i = 0; foreach ($config['calibre_directory'] as $key => $value) { $nBooks = Book::getBookCount ($i); - array_push ($this->entryArray, new Entry ($key, "{$i}:cops:catalog", + array_push ($this->entryArray, new Entry ($key, "cops:{$i}:catalog", str_format (localize ("bookword", $nBooks), $nBooks), "text", array ( new LinkNavigation ("?" . DB . "={$i}")))); $i++;