summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-18 13:42:59 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-18 13:42:59 +0100
commit4f20e3bac0dec72ede10f947ee3d1125071d4564 (patch)
tree36c27fcc686d457f3f8cc3f34fce2a760b0ad525 /apps/files_versions
parentb4a896c00ddfbd7c3965a4d9c9b723b6fe915103 (diff)
downloadnextcloud-server-4f20e3bac0dec72ede10f947ee3d1125071d4564.tar.gz
nextcloud-server-4f20e3bac0dec72ede10f947ee3d1125071d4564.zip
Removed deprecated OC_Helper::getSecureMimeType
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/download.php b/apps/files_versions/download.php
index 22a218f472a..d3c38f3d4e1 100644
--- a/apps/files_versions/download.php
+++ b/apps/files_versions/download.php
@@ -35,7 +35,7 @@ $versionName = '/'.$uid.'/files_versions/'.$filename.'.v'.$revision;
$view = new OC\Files\View('/');
-$ftype = \OC_Helper::getSecureMimeType($view->getMimeType('/'.$uid.'/files/'.$filename));
+$ftype = \OC::$server->getMimeTypeDetector()->getSecureMimeType($view->getMimeType('/'.$uid.'/files/'.$filename));
header('Content-Type:'.$ftype);
OCP\Response::setContentDispositionHeader(basename($filename), 'attachment');