* Fixed a missing typecast in Language::dateFormat() that would cause some
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 8 Jul 2005 18:48:10 +0000 (18:48 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 8 Jul 2005 18:48:10 +0000 (18:48 +0000)
  interesting errors with signitures.

RELEASE-NOTES
languages/Language.php

index 03a8202..c29944d 100644 (file)
@@ -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) &nbsp; 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 ===
 
index c520bde..e4605a7 100644 (file)
@@ -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' );
                }