X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/10c5940d15b49f8656c3c1b384f80f4c619d3d82..b3aec6cf1cd18493d44cf68d88c8f55b6a417f9c:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 3a50265..53dff0d 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -14,7 +14,7 @@ if ($page and !is_numeric($page)) { if ($Article->dateparts) { $Place[1] = ' '.$Article->date.''; } - print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); + print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', $Article->raw); if ($User and $User->admin('news')) { $taglist = []; foreach (glob("$Page/.tags/*") as $tagpath) { @@ -39,11 +39,10 @@ if ($page and !is_numeric($page)) { if ($replyform) { print placeholder_include('reply'); } - return 1; + return; } if ($year) { - ob_clean(); $match = $Page; $title = "Nieuws"; if (is_numeric($year) and $year > 999) { @@ -65,5 +64,5 @@ if ($year) { print "

$title

\n\n"; print placeholder_include('nieuws', [$match]); - return 1; + return; }