X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/7f191935501429b51d0b220ba32eda8b3a747655..176e85a6f5d6274e96a175d57b007c7afe677299:/issue/index.php diff --git a/issue/index.php b/issue/index.php index 3d62ced..6b1c3dc 100644 --- a/issue/index.php +++ b/issue/index.php @@ -1,7 +1,7 @@ title = "Issue #$id"; @@ -14,11 +14,18 @@ if ($id) { $Article->title .= ': '.htmlspecialchars($row->subject); print "

{$Article->title}

\n"; print $row->body; + printf('

%s%s %s

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

%s %s

'."\n", - 'Opgelost', showdate(preg_split('/\D/', $row->closed)) + printf('

%s%s %s

'."\n", + 'Opgelost', '', + showdate(preg_split('/\D/', $row->closed)) ); } + $Args = "/$id"; # minimal reference print placeholder_include('reply'); return; } @@ -38,16 +45,16 @@ if ($_POST) { $_POST = []; } -$query = $Db->query('SELECT * FROM issues ORDER BY created DESC'); +$query = $Db->query('SELECT * FROM issues ORDER BY updated DESC'); ob_start(); print '