From f843b8bccc8cc9a035b5bb8223461c8edb06d77e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 31 Dec 2011 09:05:55 +0000 Subject: [PATCH] Don't use legacy globals --- skins/common/mwsuggest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skins/common/mwsuggest.js b/skins/common/mwsuggest.js index a0f30f32b3..7045e1bfa6 100644 --- a/skins/common/mwsuggest.js +++ b/skins/common/mwsuggest.js @@ -436,7 +436,7 @@ window.os_setupDatalist = function( r, results ) { }; /** Fetch namespaces from checkboxes or hidden fields in the search form, - if none defined use wgSearchNamespaces global */ + if none defined use wgSearchNamespaces */ window.os_getNamespaces = function( r ) { var namespaces = ''; var elements = document.forms[r.searchform].elements; @@ -455,7 +455,7 @@ window.os_getNamespaces = function( r ) { } } if( namespaces == '' ) { - namespaces = wgSearchNamespaces.join('|'); + namespaces = mw.config.get( 'wgSearchNamespaces' ).join('|'); } return namespaces; }; -- 2.20.1