* (bug 13540) Date format in confirmation e-mail now matches message language
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Mar 2008 20:17:55 +0000 (20:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Mar 2008 20:17:55 +0000 (20:17 +0000)
RELEASE-NOTES
includes/User.php

index 4d418f3..645df14 100644 (file)
@@ -140,6 +140,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13522) Fix fatal error in Parser::extractTagsAndParams
 * (bug 13532) Use proper timestamp call when reverting images
 * (bug 13543) Updated FAQ link in the installer sidebar
+* (bug 13540) Date format in confirmation e-mail now matches message language
 
 
 === API changes in 1.13 ===
index e2e093b..103130f 100644 (file)
@@ -2384,7 +2384,7 @@ class User {
         * @return mixed True on success, a WikiError object on failure.
         */
        function sendConfirmationMail() {
-               global $wgContLang;
+               global $wgLang;
                $expiration = null; // gets passed-by-ref and defined in next line.
                $token = $this->confirmationToken( $expiration );
                $url = $this->confirmationTokenUrl( $token );
@@ -2394,7 +2394,7 @@ class User {
                                wfGetIP(),
                                $this->getName(),
                                $url,
-                               $wgContLang->timeanddate( $expiration, false ),
+                               $wgLang->timeanddate( $expiration, false ),
                                $invalidateURL ) );
        }