issue: indicate reply updates to admins
[minimedit.git] / widget / reply.php
index f9248512105bda05860bf691d212bbf7d1e0e3b3..7e7d327f3c2728d13a2cbc449a7d0a964f3c2060 100644 (file)
@@ -34,8 +34,12 @@ $imagecount = 0;
 while ($row = $query->fetch()) {
        $rowuser = new User("profile/{$row->author}");
        printf('<li id="%d">', $row->id);
+       $rowdate = showdate(preg_split('/\D/', $row->created));
+       if ($User->admin('beheer') and $row->updated) {
+               $rowdate = "<s>$rowdate</s> " . showdate(preg_split('/\D/', $row->updated));
+       }
        printf('<strong>%s</strong> <small class=date>%s</small>',
-               $rowuser->html, showdate(preg_split('/\D/', $row->created))
+               $rowuser->html, $rowdate
        );
        if ($html = $row->message) {
                $html = preg_replace('/(?<=<img )/',