]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/ImageService.php
Fixed issues found from tests
[bookstack] / app / Uploads / ImageService.php
index a217287fd324d55b9f28e500839d3506f6d6dc9a..1d04582c094ef910cef05a33098ddda9819293a0 100644 (file)
@@ -547,7 +547,7 @@ class ImageService
             // Check the image file exists
             && $disk->exists($imagePath)
             // Check the file is likely an image file
-            && strpos($disk->getMimetype($imagePath), 'image/') === 0;
+            && strpos($disk->mimeType($imagePath), 'image/') === 0;
     }
 
     /**