r49158 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49157‎ | r49158 | r49159 >
Date:17:51, 3 April 2009
Author:philip
Status:ok
Tags:
Comment:
Follow up on r49157, remove an unused variable.
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -182,7 +182,6 @@
183183 // http header, but we don't set the mPreferredVariant
184184 // variable in case this is called before the user's
185185 // preference is loaded
186 - $preferredVariant = $this->mMainLanguageCode;
187186 if( array_key_exists( 'HTTP_ACCEPT_LANGUAGE', $_SERVER ) ) {
188187 $acceptLanguage = str_replace( '_', '-', strtolower($_SERVER["HTTP_ACCEPT_LANGUAGE"]));
189188 $languages = preg_split('/[,;]/', $acceptLanguage);

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r491571. Rewrite code for parsing http request header to get supported language var...philip17:35, 3 April 2009

Status & tagging log