From ecdf88e41b898889fe8e05bb9c05415dd6b03a95 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 17 Dec 2015 17:07:48 +0100 Subject: Use proper public API for OC_Helper::getFileNameMimeType --- 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 5ec05a3529e..a053ea6d6d2 100644 --- a/lib/private/files/objectstore/objectstorestorage.php +++ b/lib/private/files/objectstore/objectstorestorage.php @@ -329,7 +329,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common { $stat['mtime'] = $mtime; $this->getCache()->update($stat['fileid'], $stat); } else { - $mimeType = \OC_Helper::getFileNameMimeType($path); + $mimeType = \OC::$server->getMimeTypeDetector()->detectPath($path); // create new file $stat = array( 'etag' => $this->getETag($path), -- cgit v1.2.3