X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/7983570288ed2798470a552ec04f64aa646b664a..da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e:/issue/index.php?ds=sidebyside diff --git a/issue/index.php b/issue/index.php index 181d5b7..87b22a3 100644 --- a/issue/index.php +++ b/issue/index.php @@ -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"; @@ -97,4 +99,4 @@ while ($row = $query->fetch()) { print "\n"; } print "\n"; -$Place['issuelist'] = ob_get_clean(); +$Page->place['issuelist'] = ob_get_clean();