X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=9bbccf12efb8640c319af42caa234c28dedd0fbe;hb=a74881be24946a0d0fa0f2b3b0f7b403a4fa89e2;hp=cd8df5d48035af5e57b0088f4ef2c007f7aabfa2;hpb=27615c9ca1dbbc1b087eccd8b8b6ba7ffe52e5c3;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index cd8df5d480..9bbccf12ef 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1026,6 +1026,11 @@ class Language { /** * Pass through result from $dateTimeObj->format() + * @param DateTime|bool|null &$dateTimeObj + * @param string $ts + * @param DateTimeZone|bool|null $zone + * @param string $code + * @return string */ private static function dateTimeObjFormat( &$dateTimeObj, $ts, $zone, $code ) { if ( !$dateTimeObj ) { @@ -3137,7 +3142,7 @@ class Language { } if ( !is_array( $rawEntry ) ) { - error_log( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" ); + wfWarn( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" ); } else { $mw->mCaseSensitive = $rawEntry[0]; $mw->mSynonyms = array_slice( $rawEntry, 1 ); @@ -3992,7 +3997,7 @@ class Language { * Get the list of variants supported by this language * see sample implementation in LanguageZh.php * - * @return array an array of language codes + * @return array An array of language codes */ public function getVariants() { return $this->mConverter->getVariants(); @@ -4284,7 +4289,7 @@ class Language { * * @since 1.22 * @param string $code Language code - * @return array array( fallbacks, site fallbacks ) + * @return array Array( fallbacks, site fallbacks ) */ public static function getFallbacksIncludingSiteLanguage( $code ) { global $wgLanguageCode; @@ -4339,7 +4344,7 @@ class Language { * * @since 1.19 * @param string $code Language code - * @return array of message keys (strings) + * @return array Array of message keys (strings) */ public static function getMessageKeysFor( $code ) { return self::getLocalisationCache()->getSubItemList( $code, 'messages' ); @@ -4611,7 +4616,7 @@ class Language { * @param Title $title Title object to link * @param int $offset * @param int $limit - * @param array|string $query Optional URL query parameter string + * @param array $query Optional URL query parameter string * @param bool $atend Optional param for specified if this is the last page * @return string */