r82260 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82259‎ | r82260 | r82261 >
Date:17:14, 16 February 2011
Author:catrope
Status:resolved
Tags:
Comment:
1.17wmf1: MFT r82258
Modified paths:
  • /branches/wmf/1.17wmf1/includes/Skin.php (modified) (history)
  • /branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoaderStartUpModule.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoaderStartUpModule.php
@@ -79,9 +79,6 @@
8080 'wgDBname' => $wgDBname,
8181 'wgExtensionAssetsPath' => $wgExtensionAssetsPath,
8282 );
83 - if ( $wgContLang->hasVariants() ) {
84 - $vars['wgUserVariant'] = $wgContLang->getPreferredVariant();
85 - }
8683 if ( $wgUseAjax && $wgEnableMWSuggest ) {
8784 $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate();
8885 }
Index: branches/wmf/1.17wmf1/includes/Skin.php
@@ -442,6 +442,9 @@
443443 'wgCategories' => $wgOut->getCategories(),
444444 'wgBreakFrames' => $wgOut->getFrameOptions() == 'DENY',
445445 );
 446+ if ( $wgContLang->hasVariants() ) {
 447+ $vars['wgUserVariant'] = $wgContLang->getPreferredVariant();
 448+ }
446449 foreach ( $wgTitle->getRestrictionTypes() as $type ) {
447450 $vars['wgRestriction' . ucfirst( $type )] = $wgTitle->getRestrictions( $type );
448451 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82258Per Philip Tzou, move wgUserVariant from the set of config variables to the s...catrope17:06, 16 February 2011

Status & tagging log