From: umherirrender Date: Sat, 17 Jan 2015 19:31:18 +0000 (+0100) Subject: Change Language::timeanddate to userTimeAndDate in RevisionList X-Git-Tag: 1.31.0-rc.0~11730^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=fbcb3e9a73cb6cc637da29d4e68bfef3012820ab;p=lhc%2Fweb%2Fwiklou.git Change Language::timeanddate to userTimeAndDate in RevisionList This avois using $wgUser when formatting the timestamp This was done in the overrides with I30d88822d8ede5c138dd5403a998dd722f950bbe The htmlspecialchars was added with Ie1f16029020f980abba35d6322b89c95326f107b to the overrides. Change-Id: Iaa12064502b343f0f47178f4848eed72662b422c --- diff --git a/includes/RevisionList.php b/includes/RevisionList.php index d10b5412cb..0f77111992 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -338,7 +338,8 @@ class RevisionItem extends RevisionItemBase { * @return string */ protected function getRevisionLink() { - $date = $this->list->getLanguage()->timeanddate( $this->revision->getTimestamp(), true ); + $date = htmlspecialchars( $this->list->getLanguage()->userTimeAndDate( + $this->revision->getTimestamp(), $this->list->getUser() ) ); if ( $this->isDeleted() && !$this->canViewContent() ) { return $date; }