diff --git a/Controller.php b/Controller.php index 9714783..d133606 100644 --- a/Controller.php +++ b/Controller.php @@ -231,7 +231,7 @@ class Controller extends ModuleAbstract implements WebInterface $mediaCreated = []; if (!empty($files)) { - $upload = new UploadFile(); + $upload = new UploadFile(); $upload->setOutputDir(self::createMediaPath($basePath)); $status = $upload->upload($files); diff --git a/Models/UploadFile.php b/Models/UploadFile.php index 86c14cf..3967df6 100644 --- a/Models/UploadFile.php +++ b/Models/UploadFile.php @@ -202,7 +202,7 @@ class UploadFile } elseif ($extension === 'jpg' || $extension === 'jpeg') { $img = imagecreatefromjpeg($path); } else { - $img = imagecreatefromgif ($path); + $img = imagecreatefromgif($path); } imageinterlace($img, (int) $this->interlaced); @@ -212,7 +212,7 @@ class UploadFile } elseif ($extension === 'jpg' || $extension === 'jpeg') { imagejpeg($img, $path); } else { - imagegif ($img, $path); + imagegif($img, $path); } imagedestroy($img); diff --git a/img/module_teaser_small.png b/img/module_teaser_small.png index f56e6ff..9147e4f 100644 Binary files a/img/module_teaser_small.png and b/img/module_teaser_small.png differ