X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/159ee0f3d812c9681a00c37f6a2bcaf8a1de83bc..refs/tags/v4.2:/issue/index.php diff --git a/issue/index.php b/issue/index.php index 82fa39e..cefe00f 100644 --- a/issue/index.php +++ b/issue/index.php @@ -5,34 +5,36 @@ require_once 'database.inc.php'; if ($id and ctype_digit($id)) { $Article->title = "Issue #$id"; - + $Args = "/$id"; # minimal reference $Issue = $Db->query( 'SELECT * FROM issues WHERE page = ? AND id = ?', [$Page, $id] )->fetch(); if (!$Issue) throw new Exception('Issuenummer niet gevonden'); + $replies = placeholder_include('reply'); # handle updates + $Article->title .= ': '.htmlspecialchars($Issue->subject); print "

{$Article->title}

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

%s%s %s

'."\n", - 'Geplaatst', - $author ? " door {$author->html}" : '', - showdate(preg_split('/\D/', $Issue->created)) - ); + print "
\n"; + print '
Geplaatst
'; + printf('
%s
'."\n", showdate(preg_split('/\D/', $Issue->created))); + if ($Issue->author and $author = new User('profile/'.$Issue->author, FALSE)) { + printf('
%s
'."\n", $author->html); + } if ($Issue->assign) { - printf('

%s aan %s

'."\n", - 'Toegewezen', htmlspecialchars($Issue->assign) - ); + print '
Toegewezen aan
'; + printf('
%s
'."\n", htmlspecialchars($Issue->assign)); } if ($Issue->closed) { - printf('

%s%s %s

'."\n", - 'Opgelost', '', - showdate(preg_split('/\D/', $Issue->closed)) - ); + print '
Opgelost
'; + printf('
%s
'."\n", showdate(preg_split('/\D/', $Issue->closed))); } + print "
\n\n"; + + print '
'; print $Issue->body; - $Args = "/$id"; # minimal reference - print placeholder_include('reply'); + print $replies; + print "
\n"; return; } @@ -66,7 +68,7 @@ if ($id == 'feed') { ob_start(); print '\n"; $Place['issuelist'] = ob_get_clean();