From: Niklas Laxström Date: Sat, 31 Dec 2011 09:05:55 +0000 (+0000) Subject: Don't use legacy globals X-Git-Tag: 1.31.0-rc.0~25658 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=f843b8bccc8cc9a035b5bb8223461c8edb06d77e;p=lhc%2Fweb%2Fwiklou.git Don't use legacy globals --- 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; };