X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b04f76050d54c67844d5d4026993f6fab0edeae5..7c9537015a7361681323e5a5ce2f10d9c0ee42d3:/issue/index.php diff --git a/issue/index.php b/issue/index.php index 8c58f41..62182ac 100644 --- a/issue/index.php +++ b/issue/index.php @@ -5,7 +5,7 @@ require_once 'database.inc.php'; 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(); @@ -15,6 +15,7 @@ if ($id and ctype_digit($id)) { $Page->title .= ': '.htmlspecialchars($Issue->subject); $Page->teaser = $Issue->body; + if ($Page->api) return; $Page->body = $replies; # find image print "

{$Page->title}

\n"; @@ -54,6 +55,7 @@ if ($_POST) { } $_POST = []; } +if ($Page->api) return; $subsql = "SELECT count(*) FROM comments WHERE page=i.page||'/'||i.id"; $cols = "*, ($subsql AND message IS NOT NULL) AS replycount";