X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/234326791b1e8177eb475bffc5956d7086cfac4e..0ec5503f005aefca1c1d2380e70982918d5fc00c:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 23cfe4f..8b82b61 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -8,15 +8,11 @@ if ($User and $User->admin) { if ($page and !is_numeric($page)) { $edit = $User && $User->admin ? htmlspecialchars(@$_GET['edit']) : NULL; - $Place['title'] = $edit ?: $Article->title; - if ($Article->file) { - $Place['description'] = $Article->teaser; + if ($edit) { + $Article->title = $edit; } $Place[1] = ' '.$Article->date.''; print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); - if ($Article->file and $Article->image) { - $Place['image'] = "/".$Article->thumb('600x'); - } if ($User and $User->admin) { $taglist = []; foreach (glob("$Page/.tags/*") as $tagpath) {