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
This commit is contained in:
parent
37297d5468
commit
fbcb3e9a73
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue