summaryrefslogtreecommitdiffstats
path: root/lib/private/installer.php
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/installer.php
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/installer.php')
-rw-r--r--lib/private/installer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 86968a7c189..021e496392f 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -278,7 +278,7 @@ class OC_Installer{
}
//detect the archive type
- $mime=OC_Helper::getMimeType($path);
+ $mime = \OC::$server->getMimeTypeDetector()->detect($path);
if ($mime !=='application/zip' && $mime !== 'application/x-gzip' && $mime !== 'application/x-bzip2') {
throw new \Exception($l->t("Archives of type %s are not supported", array($mime)));
}