Index: trunk/phase3/includes/installer/WebInstallerPage.php |
— | — | @@ -161,6 +161,7 @@ |
162 | 162 | $userLang = $r->getVal( 'uselang' ); |
163 | 163 | $contLang = $r->getVal( 'ContLang' ); |
164 | 164 | |
| 165 | + $languages = Language::getLanguageNames(); |
165 | 166 | $lifetime = intval( ini_get( 'session.gc_maxlifetime' ) ); |
166 | 167 | if ( !$lifetime ) { |
167 | 168 | $lifetime = 1440; // PHP default |
— | — | @@ -181,7 +182,6 @@ |
182 | 183 | } |
183 | 184 | $this->parent->showError( $msg, $wgLang->formatTimePeriod( $lifetime ) ); |
184 | 185 | } else { |
185 | | - $languages = Language::getLanguageNames(); |
186 | 186 | if ( isset( $languages[$userLang] ) ) { |
187 | 187 | $this->setVar( '_UserLang', $userLang ); |
188 | 188 | } |