Merge pull request #560 from kiwix/fix_compilation_illustration

This commit is contained in:
Kelson 2021-06-19 13:15:44 +02:00 committed by GitHub
commit 8eabae6286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -184,8 +184,7 @@ Entry Reader::getMainPage() const
bool Reader::getFavicon(string& content, string& mimeType) const bool Reader::getFavicon(string& content, string& mimeType) const
{ {
try { try {
auto entry = zimArchive->getFaviconEntry(); auto item = zimArchive->getIllustrationItem();
auto item = entry.getItem(true);
content = item.getData(); content = item.getData();
mimeType = item.getMimetype(); mimeType = item.getMimetype();
return true; return true;