X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..v4.5-23-gb9757db578:/issue/index.php diff --git a/issue/index.php b/issue/index.php index 41d3749..e8a36d2 100644 --- a/issue/index.php +++ b/issue/index.php @@ -11,10 +11,11 @@ if ($id and ctype_digit($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; + if (!$User) return; $Page->body = $replies; # find image print "

{$Page->title}

\n"; @@ -40,6 +41,7 @@ if ($id and ctype_digit($id)) { print "\n"; return; } +elseif (!$User) return; if ($_POST) { require_once 'upload.inc.php'; @@ -97,4 +99,4 @@ while ($row = $query->fetch()) { print "\n"; } print "\n"; -$Place['issuelist'] = ob_get_clean(); +$Page->place['issuelist'] = ob_get_clean();