Fix: search using API does not respect the passed language list

If there is a search api configured, ULS list all languages that
pass the search irrespective of whether a language is present in
options.languages

Change-Id: I0be80397bb5b4071bc7bc5e787fe107c98e3d912
This commit is contained in:
Santhosh Thottingal
2016-04-06 15:21:33 +05:30
parent 2e16e9b701
commit 7b3cd3d885

View File

@@ -213,7 +213,9 @@
languageFilter.autofill( code, name );
}
if ( languageFilter.render( code ) ) {
if ( languageFilter.options.languages[ code ] &&
languageFilter.render( code )
) {
languageFilter.resultCount++;
}
} );