r73990 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73989‎ | r73990 | r73991 >
Date:22:08, 29 September 2010
Author:tparscal
Status:ok
Tags:
Comment:
Moved wgDBName out of $wgUseAjax / $wgEnableMWSuggest conditional - this needs to be done in deployment as well. This is needed for central notice work.
Modified paths:
  • /branches/wmf/1.16wmf4/includes/Skin.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/Skin.php
@@ -425,6 +425,7 @@
426426 'wgNamespaceIds' => $wgContLang->getNamespaceIds(),
427427 'wgSiteName' => $wgSitename,
428428 'wgCategories' => $wgOut->getCategories(),
 429+ 'wgDBname' => $wgDBname,
429430 );
430431 if ( $wgContLang->hasVariants() ) {
431432 $vars['wgUserVariant'] = $wgContLang->getPreferredVariant();
@@ -438,7 +439,6 @@
439440
440441 if( $wgUseAjax && $wgEnableMWSuggest && !$wgUser->getOption( 'disablesuggest', false ) ) {
441442 $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate();
442 - $vars['wgDBname'] = $wgDBname;
443443 $vars['wgSearchNamespaces'] = SearchEngine::userNamespaces( $wgUser );
444444 $vars['wgMWSuggestMessages'] = array( wfMsg( 'search-mwsuggest-enabled' ), wfMsg( 'search-mwsuggest-disabled' ) );
445445 }

Status & tagging log