From: Alexandre Emsenhuber Date: Wed, 21 Dec 2011 18:40:02 +0000 (+0000) Subject: Use accessor instead of the member variable directly and factorise the calls to it X-Git-Tag: 1.31.0-rc.0~25832 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=d4d7f27443ad452a7646af54cd8d05c302240895;p=lhc%2Fweb%2Fwiklou.git Use accessor instead of the member variable directly and factorise the calls to it --- 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() ) {