Skip to content

Commit 711688d

Browse files
committed
Issues-311: added an update user link
1 parent f744910 commit 711688d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/vanilla/bootstrap.before.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,16 @@ function dateUpdated($row, $wrap = null) {
307307
$dateUpdatedFormatted = Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($dateUpdated, false, DateTimeFormatter::FORCE_FULL_FORMAT);
308308
if ($updateUser) {
309309
$title = sprintf(t('Edited %s by %s.'), $dateUpdatedFormatted, val('Name', $updateUser));
310+
$link = userAnchor($updateUser);
311+
$text = sprintf(t('edited %s by %s'), $dateUpdatedFormatted, $link);
310312
} else {
311313
$title = sprintf(t('Edited %s.'), $dateUpdatedFormatted);
314+
$text = sprintf(t('edited %s'), $dateUpdatedFormatted);
312315
}
313316

314317
$result = ' <span title="'.htmlspecialchars($title).'" class="DateUpdated">'.
315-
sprintf(t('edited %s'), $dateUpdatedFormatted).'</span> ';
318+
$text.'</span> ';
319+
316320
if ($wrap) {
317321
$result = $wrap[0].$result.$wrap[1];
318322
}

0 commit comments

Comments
 (0)