Last active
June 10, 2016 11:32
-
-
Save Fannon/7875fd979d00d8116424d367a0f1c67a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/resources/src/mediawiki/mediawiki.searchSuggest.js b/resources/src/mediawiki/mediawiki.searchSuggest.js | |
index 7b7ccf3..22ad6c2 100644 | |
--- a/resources/src/mediawiki/mediawiki.searchSuggest.js | |
+++ b/resources/src/mediawiki/mediawiki.searchSuggest.js | |
@@ -127,7 +127,7 @@ | |
$.data( node, 'request', api.get( { | |
action: 'opensearch', | |
search: query, | |
- namespace: 0, | |
+ namespace: mw.config.get('wgContentNamespaces').join('|'), | |
limit: maxRows, | |
suggest: '' | |
} ).done( function ( data ) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment