r104321 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104320‎ | r104321 | r104322 >
Date:22:50, 26 November 2011
Author:johnduhart
Status:ok
Tags:
Comment:
Followup r103984, take the default for the language dropdown from the URL
Modified paths:
  • /trunk/phase3/includes/installer/WebInstallerPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/WebInstallerPage.php
@@ -161,6 +161,7 @@
162162 $userLang = $r->getVal( 'uselang' );
163163 $contLang = $r->getVal( 'ContLang' );
164164
 165+ $languages = Language::getLanguageNames();
165166 $lifetime = intval( ini_get( 'session.gc_maxlifetime' ) );
166167 if ( !$lifetime ) {
167168 $lifetime = 1440; // PHP default
@@ -181,7 +182,6 @@
182183 }
183184 $this->parent->showError( $msg, $wgLang->formatTimePeriod( $lifetime ) );
184185 } else {
185 - $languages = Language::getLanguageNames();
186186 if ( isset( $languages[$userLang] ) ) {
187187 $this->setVar( '_UserLang', $userLang );
188188 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r103984Followup r103814, fixed a few typos and a stray newlinejohnduhart00:03, 23 November 2011

Status & tagging log