From 9318606fafce10740c30be3662514d5a7a139ce5 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 26 Nov 2015 10:18:32 +0100 Subject: Remove last occurences of OC_Helper::getMimeType() * ref #4774 --- lib/private/files/objectstore/objectstorestorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/files/objectstore') diff --git a/lib/private/files/objectstore/objectstorestorage.php b/lib/private/files/objectstore/objectstorestorage.php index e108d7662d4..5ec05a3529e 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -370,7 +370,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { $stat['size'] = filesize($tmpFile); $stat['mtime'] = $mTime; $stat['storage_mtime'] = $mTime; - $stat['mimetype'] = \OC_Helper::getMimeType($tmpFile); + $stat['mimetype'] = \OC::$server->getMimeTypeDetector()->detect($tmpFile); $stat['etag'] = $this->getETag($path); $fileId = $this->getCache()->put($path, $stat); -- cgit v1.2.3