fix images not displaying

This commit is contained in:
flash 2016-12-04 20:14:54 +01:00
parent 57b1d9ce55
commit e018549989

View file

@ -197,7 +197,7 @@ class FileController extends Controller
$none = [ $none = [
'name' => basename($noFile), 'name' => basename($noFile),
'data' => file_get_contents($noFile), 'data' => file_get_contents($noFile),
'mime' => getimagesizefromstring($noFile)['mime'], 'mime' => getimagesize($noFile)['mime'],
]; ];
if (!$user->activated if (!$user->activated