From e018549989328ebf987b4a64c630186a3af6b5d4 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 4 Dec 2016 20:14:54 +0100 Subject: [PATCH] fix images not displaying --- app/Controllers/FileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/FileController.php b/app/Controllers/FileController.php index 668f528..2e56540 100644 --- a/app/Controllers/FileController.php +++ b/app/Controllers/FileController.php @@ -197,7 +197,7 @@ class FileController extends Controller $none = [ 'name' => basename($noFile), 'data' => file_get_contents($noFile), - 'mime' => getimagesizefromstring($noFile)['mime'], + 'mime' => getimagesize($noFile)['mime'], ]; if (!$user->activated