summaryrefslogtreecommitdiffstats
path: root/lib/private/files/objectstore
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-11-26 10:18:32 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-11-26 10:18:32 +0100
commit9318606fafce10740c30be3662514d5a7a139ce5 (patch)
treed3c127c197028ed8b7143fed0c614ac7176661fe /lib/private/files/objectstore
parentdd18ea611bd0e66969df22aedddc98cddbba4984 (diff)
downloadnextcloud-server-9318606fafce10740c30be3662514d5a7a139ce5.tar.gz
nextcloud-server-9318606fafce10740c30be3662514d5a7a139ce5.zip
Remove last occurences of OC_Helper::getMimeType()
* ref #4774
Diffstat (limited to 'lib/private/files/objectstore')
-rw-r--r--lib/private/files/objectstore/objectstorestorage.php2
1 files changed, 1 insertions, 1 deletions
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);