From: Alexandre Emsenhuber Date: Mon, 30 Jan 2012 20:23:01 +0000 (+0000) Subject: Use Language::userTimeAndDate() instead of Language::timeanddate() to display timesta... X-Git-Tag: 1.31.0-rc.0~24999 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=2a90619d9f0d2b523dda31d3da6edb4ebbc88e89;p=lhc%2Fweb%2Fwiklou.git Use Language::userTimeAndDate() instead of Language::timeanddate() to display timestamp with user preferences --- diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 820884436f..0581867536 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -182,7 +182,7 @@ class DeletedContribsPager extends IndexPager { } $comment = Linker::revComment( $rev ); - $date = htmlspecialchars( $this->getLanguage()->timeanddate( $rev->getTimestamp(), true ) ); + $date = htmlspecialchars( $this->getLanguage()->userTimeAndDate( $rev->getTimestamp(), $user ) ); if( !$user->isAllowed( 'undelete' ) || !$rev->userCan( Revision::DELETED_TEXT, $user ) ) { $link = $date; // unusable link