Use Skin::msg() instead.
* wfInitShellLocale() was removed (deprecated in 1.30).
* wfShellExecDisabled() was removed (deprecated in 1.30).
+* The type string for the parameter $lang of DateFormatter::getInstance is
+ removed (deprecated in 1.31).
=== Deprecations in 1.32 ===
* Use of a StartProfiler.php file is deprecated in favour of placing
* Defaults to the site content language
* @return DateFormatter
*/
- public static function getInstance( $lang = null ) {
+ public static function getInstance( Language $lang = null ) {
global $wgContLang, $wgMainCacheType;
- if ( is_string( $lang ) ) {
- wfDeprecated( __METHOD__ . ' with type string for $lang', '1.31' );
- }
- $lang = $lang ? wfGetLangObj( $lang ) : $wgContLang;
+ $lang = $lang ?: $wgContLang;
$cache = ObjectCache::getLocalServerInstance( $wgMainCacheType );
static $dateFormatter = false;