Skip to content

Instantly share code, notes, and snippets.

@Fannon
Last active June 10, 2016 11:32
Show Gist options
  • Save Fannon/7875fd979d00d8116424d367a0f1c67a to your computer and use it in GitHub Desktop.
Save Fannon/7875fd979d00d8116424d367a0f1c67a to your computer and use it in GitHub Desktop.
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