From 1455c1bfbca693f0937cfc557eb696c7d13b8750 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Thu, 8 Mar 2012 21:13:09 +0000 Subject: [PATCH] FIXED: Library filtering by language with ISO639-1 language ZIM metadata --- src/common/kiwix/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index dfabebd8a..6bf88772f 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -462,7 +462,7 @@ namespace kiwix { if (ok == true && (unsigned int)atoi(itr->size.c_str()) > maxSize * 1024 * 1024) ok = false; - if (ok == true && !language.empty() && itr->language != language) + if (ok == true && !language.empty() && !matchRegex(itr->language, language)) ok = false; if (ok == true && !creator.empty() && itr->creator != creator)