X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/1abb286e88defee799e43cdd296914f74f722bde..76e9012a55abbbe190c2c97d25a17ec87426e687:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 23cfe4f..18416b3 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -8,15 +8,14 @@ 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 ($edit) { + $Article->title = $edit; + } if ($Article->file) { $Place['description'] = $Article->teaser; } $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) {