mirror of https://github.com/kiwix/libkiwix.git
+ less if, more efficient
This commit is contained in:
parent
1e9bfa168d
commit
c40a87837e
|
@ -142,17 +142,18 @@ namespace kiwix {
|
|||
if (content.empty()) {
|
||||
this->getContentByUrl( "/I/favicon.png", content,
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue