From f165747f163a5cfca67e79e52971e645ce802fd4 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 8 Oct 2012 10:42:34 +0000 Subject: [PATCH] NEW: if "/M/Description" empty, check "/M/Subtitle" (used by Mediawiki Collection ext.) --- src/common/kiwix/reader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/kiwix/reader.cpp b/src/common/kiwix/reader.cpp index d7d9ebc95..030b6a6f9 100644 --- a/src/common/kiwix/reader.cpp +++ b/src/common/kiwix/reader.cpp @@ -236,6 +236,12 @@ namespace kiwix { string Reader::getDescription() { string value; this->getMetatag("Description", value); + + /* Mediawiki Collection tends to use the "Subtitle" name */ + if (value.empty()) { + this->getMetatag("Subtitle", value); + } + return value; }