From 49d13f09f1035e16330d3ce85bfa7bcda186d59f Mon Sep 17 00:00:00 2001 From: Kelson42 Date: Tue, 23 Sep 2014 13:20:46 +0200 Subject: [PATCH] + search filter addtionaly on language ISO code --- src/common/kiwix/manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/kiwix/manager.cpp b/src/common/kiwix/manager.cpp index 46fb3373b..f7fdf7650 100644 --- a/src/common/kiwix/manager.cpp +++ b/src/common/kiwix/manager.cpp @@ -513,7 +513,9 @@ namespace kiwix { ok = false; if ((ok == true && !search.empty()) && !(matchRegex(itr->title, "\\Q" + search + "\\E") || - matchRegex(itr->description, "\\Q" + search + "\\E"))) + matchRegex(itr->description, "\\Q" + search + "\\E") || + matchRegex(itr->language, "\\Q" + search + "\\E") + )) ok = false; if (ok == true) {