Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/185639

Change subject: Change Language::timeanddate to userTimeAndDate in RevisionList
......................................................................

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
---
M includes/RevisionList.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/39/185639/1

diff --git a/includes/RevisionList.php b/includes/RevisionList.php
index d10b541..0f77111 100644
--- a/includes/RevisionList.php
+++ b/includes/RevisionList.php
@@ -338,7 +338,8 @@
         * @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;
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/185639
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa12064502b343f0f47178f4848eed72662b422c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to