diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-30 18:07:49 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-30 18:07:49 +0200 |
commit | 40cee5639e89ad052ba5234a28e5f197f2fd70ba (patch) | |
tree | 3c88f4e2617632ca7e05898b0dbde88946d4e06f /apps/files/ajax | |
parent | 728fc7f123eeedb79f01dd1f38d469857a8e15cf (diff) | |
download | nextcloud-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.php | 2 |
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); } |