Index: branches/wmf/1.16wmf4/includes/Skin.php |
— | — | @@ -425,6 +425,7 @@ |
426 | 426 | 'wgNamespaceIds' => $wgContLang->getNamespaceIds(), |
427 | 427 | 'wgSiteName' => $wgSitename, |
428 | 428 | 'wgCategories' => $wgOut->getCategories(), |
| 429 | + 'wgDBname' => $wgDBname, |
429 | 430 | ); |
430 | 431 | if ( $wgContLang->hasVariants() ) { |
431 | 432 | $vars['wgUserVariant'] = $wgContLang->getPreferredVariant(); |
— | — | @@ -438,7 +439,6 @@ |
439 | 440 | |
440 | 441 | if( $wgUseAjax && $wgEnableMWSuggest && !$wgUser->getOption( 'disablesuggest', false ) ) { |
441 | 442 | $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate(); |
442 | | - $vars['wgDBname'] = $wgDBname; |
443 | 443 | $vars['wgSearchNamespaces'] = SearchEngine::userNamespaces( $wgUser ); |
444 | 444 | $vars['wgMWSuggestMessages'] = array( wfMsg( 'search-mwsuggest-enabled' ), wfMsg( 'search-mwsuggest-disabled' ) ); |
445 | 445 | } |