]> source.dussan.org Git - nextcloud-server.git/commitdiff
use gerMimeTypeDetector detectPath instead of getMimeType
authorGeorg Ehrke <developer@georgehrke.com>
Fri, 30 Aug 2013 16:07:49 +0000 (18:07 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Fri, 30 Aug 2013 16:07:49 +0000 (18:07 +0200)
apps/files/ajax/newfile.php

index d224e79d01ba2dca4be3fc254ac5f3186cd48249..76c03c87a51fae369584d99af1b93f86bd6adaf2 100644 (file)
@@ -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);
        }