From 427de60fef416960972f907f4af8599e19625415 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 27 Jul 2009 10:32:18 +0000 Subject: [PATCH] Allow HTML in message emailnotauthenticated, fixes formatting regression caused by r53173 and bug 19820 --- includes/Preferences.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Preferences.php b/includes/Preferences.php index 49cdd0fc37..f89990dd37 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -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 ) ) . '
'; + $emailauthenticated = wfMsgExt( 'emailauthenticated', 'parseinline', + array($time, $d, $t ) ) . '
'; $disableEmailPrefs = false; } else { $disableEmailPrefs = true; global $wgUser; // wgUser is okay here, it's for display $skin = $wgUser->getSkin(); - $emailauthenticated = wfMsgHtml( 'emailnotauthenticated' ) . '
' . + $emailauthenticated = wfMsgExt( 'emailnotauthenticated', 'parseinline' ) . '
' . $skin->link( SpecialPage::getTitleFor( 'Confirmemail' ), wfMsg( 'emailconfirmlink' ), -- 2.20.1