X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e6912204bcdb3598135d7d2c7158fd31e8fe6f43..f8eb3c4b73b7cc139ab421517dc034d351ae00f5:/issue/index.php diff --git a/issue/index.php b/issue/index.php index cc17f03..8b42d11 100644 --- a/issue/index.php +++ b/issue/index.php @@ -1,23 +1,24 @@ path, '/')); if ($id and ctype_digit($id)) { - $Article->title = "Issue #$id"; - $Args = "/$id"; # minimal reference + $Page->title = "Issue #$id"; + $Page->link = $Page->handler . ($Page->path = "/$id"); # minimal reference $Issue = $Db->query( - 'SELECT * FROM issues WHERE page = ? AND id = ?', [$Page, $id] + 'SELECT * FROM issues WHERE page = ? AND id = ?', [$Page->handler, $id] )->fetch(); if (!$Issue) throw new Exception('Issuenummer niet gevonden'); - $replies = placeholder_include('reply'); # handle updates + $replies = $Page->widget('reply'); # handle updates - $Article->title .= ': '.htmlspecialchars($Issue->subject); - $Article->teaser = $Issue->body; - $Article->body = $replies; # find image + $Page->title .= ': '.htmlspecialchars($Issue->subject); + $Page->teaser = $Issue->body; + if ($Page->api) return; + $Page->body = $replies; # find image - print "

{$Article->title}

\n"; + print "

{$Page->title}

\n"; print '