issue: resolve author logins to full names
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 7 Nov 2019 05:13:34 +0000 (06:13 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 9 Nov 2019 06:08:13 +0000 (07:08 +0100)
issue/index.php

index d07a7863af8a57528077c5de10233c5d70d7e61a..6e13b13c99e7a54c84524f404f3c7daa4849a174 100644 (file)
@@ -14,9 +14,10 @@ if ($id) {
        $Article->title .= ': '.htmlspecialchars($Issue->subject);
        print "<h2>{$Article->title}</h2>\n";
        print $Issue->body;
+       $author = $Issue->author ? new User('profile/'.$Issue->author, FALSE) : NULL;
        printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
                'Geplaatst',
-               $Issue->author ? " door <strong>{$Issue->author}</strong>" : '',
+               $author ? " door <strong>{$author->name}</strong>" : '',
                showdate(preg_split('/\D/', $Issue->created))
        );
        if ($Issue->assign) {