From 86dae55c18312e509c851ecb1f65b304d784b44b Mon Sep 17 00:00:00 2001 From: kelson42 Date: Thu, 7 Jul 2011 11:54:43 +0000 Subject: [PATCH] + add alternative favicon urls --- src/common/kiwix/reader.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index f825ba8cf..f86afecf8 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -140,6 +140,16 @@ namespace kiwix { contentLength, mimeType); } + if (content.empty()) { + this->getContentByUrl( "/I/favicon", content, + contentLength, mimeType); + } + + if (content.empty()) { + this->getContentByUrl( "/-/favicon", content, + contentLength, mimeType); + } + return content.empty() ? false : true; }