mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
use gerMimeTypeDetector detectPath instead of getMimeType
This commit is contained in:
parent
728fc7f123
commit
40cee5639e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue