Index: trunk/phase3/skins/common/mwsuggest.js |
— | — | @@ -436,7 +436,7 @@ |
437 | 437 | }; |
438 | 438 | |
439 | 439 | /** Fetch namespaces from checkboxes or hidden fields in the search form, |
440 | | - if none defined use wgSearchNamespaces global */ |
| 440 | + if none defined use wgSearchNamespaces */ |
441 | 441 | window.os_getNamespaces = function( r ) { |
442 | 442 | var namespaces = ''; |
443 | 443 | var elements = document.forms[r.searchform].elements; |
— | — | @@ -455,7 +455,7 @@ |
456 | 456 | } |
457 | 457 | } |
458 | 458 | if( namespaces == '' ) { |
459 | | - namespaces = wgSearchNamespaces.join('|'); |
| 459 | + namespaces = mw.config.get( 'wgSearchNamespaces' ).join('|'); |
460 | 460 | } |
461 | 461 | return namespaces; |
462 | 462 | }; |