X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FDateFormatter.php;h=0a4a60e9e541981b385b325498f115a6d54c47b3;hb=80db2d4b9924eb41e1bbf220809d30d46a9ba23a;hp=605a873b7dbbed7e61b80ce047116731f7266fc0;hpb=2c8f7978df47f338ee6e245e3efba6175ba425e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/DateFormatter.php b/includes/parser/DateFormatter.php index 605a873b7d..0a4a60e9e5 100644 --- a/includes/parser/DateFormatter.php +++ b/includes/parser/DateFormatter.php @@ -126,13 +126,16 @@ class DateFormatter { /** * Get a DateFormatter object * - * @param Language|string|null $lang In which language to format the date + * @param Language|null $lang In which language to format the date * Defaults to the site content language * @return DateFormatter */ public static function getInstance( $lang = null ) { global $wgContLang, $wgMainCacheType; + if ( is_string( $lang ) ) { + wfDeprecated( __METHOD__ . ' with type string for $lang', '1.31' ); + } $lang = $lang ? wfGetLangObj( $lang ) : $wgContLang; $cache = ObjectCache::getLocalServerInstance( $wgMainCacheType );