thumb: flatten transparent images to white background
[minimedit.git] / nieuws / index.php
index 23cfe4f7b78a3c3ec2beb846d3332921a44d1475..8b82b61fb6f4b15a8b25ae9ce6028f295a6eedcf 100644 (file)
@@ -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] = ' <small class="date">'.$Article->date.'</small>';
        print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($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) {