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)
{
$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

View File

@ -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++;