From d4d7f27443ad452a7646af54cd8d05c302240895 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 21 Dec 2011 18:40:02 +0000 Subject: [PATCH] Use accessor instead of the member variable directly and factorise the calls to it --- includes/specials/SpecialConfirmemail.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialConfirmemail.php b/includes/specials/SpecialConfirmemail.php index c648249c82..912f7733ee 100644 --- a/includes/specials/SpecialConfirmemail.php +++ b/includes/specials/SpecialConfirmemail.php @@ -88,9 +88,10 @@ class EmailConfirmation extends UnlistedSpecialPage { // $time is kept for backward compat reasons. // 'emailauthenticated' is also used in SpecialPreferences.php $lang = $this->getLanguage(); - $time = $lang->userTimeAndDate( $user->mEmailAuthenticated, $user ); - $d = $lang->userDate( $user->mEmailAuthenticated, $user ); - $t = $lang->userTime( $user->mEmailAuthenticated, $user ); + $emailAuthenticated = $user->getEmailAuthenticationTimestamp(); + $time = $lang->userTimeAndDate( $emailAuthenticated, $user ); + $d = $lang->userDate( $emailAuthenticated, $user ); + $t = $lang->userTime( $emailAuthenticated, $user ); $out->addWikiMsg( 'emailauthenticated', $time, $d, $t ); } if( $user->isEmailConfirmationPending() ) { -- 2.20.1