Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -248,7 +248,7 @@ |
249 | 249 | /** |
250 | 250 | * Hook: SpecialSearchProfileForm |
251 | 251 | */ |
252 | | - public static function searchProfileForm( $search, &$form, /*string*/ $profile, $term, $opts ) { |
| 252 | + public static function searchProfileForm( SpecialSearch $search, &$form, /*string*/ $profile, $term, array $opts ) { |
253 | 253 | if ( $profile !== 'translation' ) { |
254 | 254 | return true; |
255 | 255 | } |
— | — | @@ -263,7 +263,7 @@ |
264 | 264 | } |
265 | 265 | |
266 | 266 | $context = $search->getContext(); |
267 | | - $code = $context->getLang()->getCode(); |
| 267 | + $code = $context->getLanguage()->getCode(); |
268 | 268 | $selected = $context->getRequest()->getVal( 'languagefilter' ); |
269 | 269 | |
270 | 270 | if ( is_callable( array( 'LanguageNames', 'getNames' ) ) ) { |