r106110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106109‎ | r106110 | r106111 >
Date:21:54, 13 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
getLang -> getLanguage
Modified paths:
  • /trunk/extensions/Translate/TranslateHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateHooks.php
@@ -248,7 +248,7 @@
249249 /**
250250 * Hook: SpecialSearchProfileForm
251251 */
252 - public static function searchProfileForm( $search, &$form, /*string*/ $profile, $term, $opts ) {
 252+ public static function searchProfileForm( SpecialSearch $search, &$form, /*string*/ $profile, $term, array $opts ) {
253253 if ( $profile !== 'translation' ) {
254254 return true;
255255 }
@@ -263,7 +263,7 @@
264264 }
265265
266266 $context = $search->getContext();
267 - $code = $context->getLang()->getCode();
 267+ $code = $context->getLanguage()->getCode();
268268 $selected = $context->getRequest()->getVal( 'languagefilter' );
269269
270270 if ( is_callable( array( 'LanguageNames', 'getNames' ) ) ) {

Status & tagging log