X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..83209975037c6fadba1fd0555e37e95c17fe6099:/issue/index.php?ds=sidebyside diff --git a/issue/index.php b/issue/index.php index 41d3749..0c18142 100644 --- a/issue/index.php +++ b/issue/index.php @@ -1,21 +1,22 @@ path, '/')); if ($id and ctype_digit($id)) { $Page->title = "Issue #$id"; - $Page->path = "/$id"; # minimal reference + $Page->link = $Page->handler . ($Page->path = "/$id"); # minimal reference $Issue = $Db->query( '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 $Page->title .= ': '.htmlspecialchars($Issue->subject); $Page->teaser = $Issue->body; $Page->body = $replies; # find image + if ($Page->api) return; print "

{$Page->title}

\n"; print '