Allow HTML in message emailnotauthenticated, fixes formatting regression caused by...
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 27 Jul 2009 10:32:18 +0000 (10:32 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 27 Jul 2009 10:32:18 +0000 (10:32 +0000)
includes/Preferences.php

index 49cdd0f..f89990d 100644 (file)
@@ -311,13 +311,14 @@ class Preferences {
                                                $time = $wgLang->timeAndDate( $user->getEmailAuthenticationTimestamp(), true );
                                                $d = $wgLang->date( $user->getEmailAuthenticationTimestamp(), true );
                                                $t = $wgLang->time( $user->getEmailAuthenticationTimestamp(), true );
-                                               $emailauthenticated = htmlspecialchars( wfMsg( 'emailauthenticated', $time, $d, $t ) ) . '<br />';
+                                               $emailauthenticated = wfMsgExt( 'emailauthenticated', 'parseinline',
+                                                                                               array($time, $d, $t ) ) . '<br />';
                                                $disableEmailPrefs = false;
                                        } else {
                                                $disableEmailPrefs = true;
                                                global $wgUser; // wgUser is okay here, it's for display
                                                $skin = $wgUser->getSkin();
-                                               $emailauthenticated = wfMsgHtml( 'emailnotauthenticated' ) . '<br />' .
+                                               $emailauthenticated = wfMsgExt( 'emailnotauthenticated', 'parseinline' ) . '<br />' .
                                                        $skin->link(
                                                                SpecialPage::getTitleFor( 'Confirmemail' ),
                                                                wfMsg( 'emailconfirmlink' ),