use gerMimeTypeDetector detectPath instead of getMimeType

This commit is contained in:
Georg Ehrke 2013-08-30 18:07:49 +02:00
parent 728fc7f123
commit 40cee5639e

View 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);
}