Fix the ids in OPDS feed to produce a valid feed. fix #104

This commit is contained in:
Sébastien Lucas 2013-10-25 07:59:27 +02:00
parent 23282ed1e8
commit fa5ec6cb58
7 changed files with 10 additions and 10 deletions

View file

@ -276,8 +276,8 @@ class Entry
Tag::ALL_TAGS_ID => 'images/tag.png',
Language::ALL_LANGUAGES_ID => 'images/language.png',
CustomColumn::ALL_CUSTOMS_ID => 'images/tag.png',
"calibre:books$" => 'images/allbook.png',
"calibre:books:letter" => 'images/allbook.png'
"cops:books$" => 'images/allbook.png',
"cops:books:letter" => 'images/allbook.png'
);
public function getUpdatedTime () {
@ -322,7 +322,7 @@ class Entry
}
}
if (!is_null (GetUrlParam (DB))) $this->id = GetUrlParam (DB) . ":" . $this->id;
if (!is_null (GetUrlParam (DB))) $this->id = str_replace ("cops:", "cops:" . GetUrlParam (DB) . ":", $this->id);
}
}