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:
Jon Robson 2023-10-04 11:12:09 -07:00
parent 36031cf0e9
commit 7f554fc748

View file

@ -1798,7 +1798,9 @@ class DifferenceEngine extends ContextSource {
$header = $this->linkRenderer->makeKnownLink(
$title,
$header->text(),
[],
[
'data-timestamp' => $revtimestamp,
],
[ 'oldid' => $rev->getId() ]
);
$editQuery = [ 'action' => 'edit' ];