DifferenceEngine: Make timestamps data readable
The Minerva skin renders a relative timestamp. Having this data attribute available will allow the Minerva skin to render a relative timestamp on this page. Bug: T117279 Change-Id: Ib66de95bdeca6e9bfa082889f0ed0740dbf8639f
This commit is contained in:
parent
36031cf0e9
commit
7f554fc748
1 changed files with 3 additions and 1 deletions
|
|
@ -1798,7 +1798,9 @@ class DifferenceEngine extends ContextSource {
|
||||||
$header = $this->linkRenderer->makeKnownLink(
|
$header = $this->linkRenderer->makeKnownLink(
|
||||||
$title,
|
$title,
|
||||||
$header->text(),
|
$header->text(),
|
||||||
[],
|
[
|
||||||
|
'data-timestamp' => $revtimestamp,
|
||||||
|
],
|
||||||
[ 'oldid' => $rev->getId() ]
|
[ 'oldid' => $rev->getId() ]
|
||||||
);
|
);
|
||||||
$editQuery = [ 'action' => 'edit' ];
|
$editQuery = [ 'action' => 'edit' ];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue