From: Mischa POSLAWSKY Date: Thu, 7 Nov 2019 05:13:34 +0000 (+0100) Subject: issue: resolve author logins to full names X-Git-Tag: v4.2~22 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/845c98a6fa7ce005d3830548c042d77b68f7dc31 issue: resolve author logins to full names --- diff --git a/issue/index.php b/issue/index.php index d07a786..6e13b13 100644 --- a/issue/index.php +++ b/issue/index.php @@ -14,9 +14,10 @@ if ($id) { $Article->title .= ': '.htmlspecialchars($Issue->subject); print "

{$Article->title}

\n"; print $Issue->body; + $author = $Issue->author ? new User('profile/'.$Issue->author, FALSE) : NULL; printf('

%s%s %s

'."\n", 'Geplaatst', - $Issue->author ? " door {$Issue->author}" : '', + $author ? " door {$author->name}" : '', showdate(preg_split('/\D/', $Issue->created)) ); if ($Issue->assign) {