From: Mischa POSLAWSKY Date: Fri, 5 Nov 2021 16:47:12 +0000 (+0100) Subject: issue: indicate reply updates to admins X-Git-Tag: v5.4~8 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/28665e987ef8be35ce4f7082bd7aa5c91371397a issue: indicate reply updates to admins --- diff --git a/widget/reply.php b/widget/reply.php index f924851..7e7d327 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -34,8 +34,12 @@ $imagecount = 0; while ($row = $query->fetch()) { $rowuser = new User("profile/{$row->author}"); printf('
  • ', $row->id); + $rowdate = showdate(preg_split('/\D/', $row->created)); + if ($User->admin('beheer') and $row->updated) { + $rowdate = "$rowdate " . showdate(preg_split('/\D/', $row->updated)); + } printf('%s %s', - $rowuser->html, showdate(preg_split('/\D/', $row->created)) + $rowuser->html, $rowdate ); if ($html = $row->message) { $html = preg_replace('/(?<=