From: Andrew Garrett Date: Mon, 27 Jul 2009 10:32:18 +0000 (+0000) Subject: Allow HTML in message emailnotauthenticated, fixes formatting regression caused by... X-Git-Tag: 1.31.0-rc.0~40699 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=427de60fef416960972f907f4af8599e19625415;p=lhc%2Fweb%2Fwiklou.git Allow HTML in message emailnotauthenticated, fixes formatting regression caused by r53173 and bug 19820 --- 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' ),