summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-30 18:07:49 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-30 18:07:49 +0200
commit40cee5639e89ad052ba5234a28e5f197f2fd70ba (patch)
tree3c88f4e2617632ca7e05898b0dbde88946d4e06f /apps/files/ajax
parent728fc7f123eeedb79f01dd1f38d469857a8e15cf (diff)
downloadnextcloud-server-40cee5639e89ad052ba5234a28e5f197f2fd70ba.tar.gz
nextcloud-server-40cee5639e89ad052ba5234a28e5f197f2fd70ba.zip
use gerMimeTypeDetector detectPath instead of getMimeType
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/newfile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php
index d224e79d01b..76c03c87a51 100644
--- a/apps/files/ajax/newfile.php
+++ b/apps/files/ajax/newfile.php
@@ -79,7 +79,7 @@ if($source) {
$success = false;
if (!$content) {
$templateManager = OC_Helper::getFileTemplateManager();
- $mimeType = OC_Helper::getMimeType($target);
+ $mimeType = OC_Helper::getMimetypeDetector()->detectPath($target);
$content = $templateManager->getTemplate($mimeType);
}