r107717 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107716‎ | r107717 | r107718 >
Date:09:05, 31 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Don't use legacy globals
Modified paths:
  • /trunk/phase3/skins/common/mwsuggest.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/mwsuggest.js
@@ -436,7 +436,7 @@
437437 };
438438
439439 /** Fetch namespaces from checkboxes or hidden fields in the search form,
440 - if none defined use wgSearchNamespaces global */
 440+ if none defined use wgSearchNamespaces */
441441 window.os_getNamespaces = function( r ) {
442442 var namespaces = '';
443443 var elements = document.forms[r.searchform].elements;
@@ -455,7 +455,7 @@
456456 }
457457 }
458458 if( namespaces == '' ) {
459 - namespaces = wgSearchNamespaces.join('|');
 459+ namespaces = mw.config.get( 'wgSearchNamespaces' ).join('|');
460460 }
461461 return namespaces;
462462 };

Status & tagging log