Forgot two while fixing the ids. re #104

This commit is contained in:
Sébastien Lucas 2013-10-25 08:07:42 +02:00
parent fa5ec6cb58
commit 9cf33d7d1c
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ class OPDSRenderer
if ($page->idPage) if ($page->idPage)
{ {
$idPage = $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); self::getXmlStream ()->text ($idPage);
} }
else else

View file

@ -443,7 +443,7 @@ class Page
$i = 0; $i = 0;
foreach ($config['calibre_directory'] as $key => $value) { foreach ($config['calibre_directory'] as $key => $value) {
$nBooks = Book::getBookCount ($i); $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", str_format (localize ("bookword", $nBooks), $nBooks), "text",
array ( new LinkNavigation ("?" . DB . "={$i}")))); array ( new LinkNavigation ("?" . DB . "={$i}"))));
$i++; $i++;