From 9216aaddbb066c582a28f868219e268dbeb5a6f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 8 Jul 2005 18:48:10 +0000 Subject: [PATCH] * Fixed a missing typecast in Language::dateFormat() that would cause some interesting errors with signitures. --- RELEASE-NOTES | 2 ++ languages/Language.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 03a8202308..c29944daf6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -545,6 +545,8 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. * (bug 2721) New language file for Vietnamese with the Vietnamese number notation * (bug 2749)   would appear as a literal in image galleries for Cs, Fr, Fur, Pl and Sv * (bug 787) external links being rendered when they only have one slash +* Fixed a missing typecast in Language::dateFormat() that would cause some + interesting errors with signitures. === Caveats === diff --git a/languages/Language.php b/languages/Language.php index c520bdecea..e4605a7e7e 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -2405,7 +2405,7 @@ class Language { if ( !$wgUser->isLoggedIn() || $format === false ) { $options = $this->getDefaultUserOptions(); - return $options['date']; + return (string)$options['date']; } else { return $wgUser->getOption( 'date' ); } -- 2.20.1