From 20edfc8ee3ac3ff584a48d539618602b7df90133 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Wed, 21 Sep 2011 19:30:08 +0000 Subject: [PATCH] * follow-up r97636: decrease indentation & mention revision per Nikerabbit * add @since for r97071 --- includes/parser/ParserOptions.php | 2 +- languages/Language.php | 2 ++ languages/LanguageConverter.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index c545747d4e..36fce3423d 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -275,7 +275,7 @@ class ParserOptions { * * @since 1.17 * @param $forOptions Array - * @param $title Title: will be used to get the page content language + * @param $title Title: will be used to get the page content language (since r97636) * @return \string Page rendering hash */ public function optionsHash( $forOptions, $title = null ) { diff --git a/languages/Language.php b/languages/Language.php index ca9782d7a0..07e7003921 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -3418,6 +3418,8 @@ class Language { /** * Get all message keys for a given language. This is a faster alternative to * array_keys( Language::getMessagesFor( $code ) ) + * + * @since 1.19 * @param $code string Language code * @return array of message keys (strings) */ diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 7d399e3c41..5cf714dbc4 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -1364,7 +1364,7 @@ class ConverterRule { if ( isset( $this->mVariantFlags[$variant] ) ) { // then convert to current language $this->mRules = $this->mConverter->autoConvert( $this->mRules, - $variant ); + $variant ); } else { // if current variant no in flags, // then we check its fallback variants. $variantFallbacks = @@ -1376,7 +1376,7 @@ class ConverterRule { // then convert to fallback language $this->mRules = $this->mConverter->autoConvert( $this->mRules, - $variantFallback ); + $variantFallback ); break; } } -- 2.20.1