diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 11:18:25 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 12:45:18 +0100 |
commit | 47af533183c8b8bf3ed05083e9e48723e1e7e9e5 (patch) | |
tree | ca383b61adeb03e4e6d63ccdb87d39b663201da1 /apps/files_sharing/lib/controllers | |
parent | 8ed27d2ce0477f40a27cdc335361b0d5654a7e09 (diff) | |
download | nextcloud-server-47af533183c8b8bf3ed05083e9e48723e1e7e9e5.tar.gz nextcloud-server-47af533183c8b8bf3ed05083e9e48723e1e7e9e5.zip |
Move mimetype check from template to controller
Diffstat (limited to 'apps/files_sharing/lib/controllers')
-rw-r--r-- | apps/files_sharing/lib/controllers/sharecontroller.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php index ebc54265bf0..b0d7781515f 100644 --- a/apps/files_sharing/lib/controllers/sharecontroller.php +++ b/apps/files_sharing/lib/controllers/sharecontroller.php @@ -170,6 +170,7 @@ class ShareController extends Controller { $shareTmpl['filename'] = $file; $shareTmpl['directory_path'] = $linkItem['file_target']; $shareTmpl['mimetype'] = Filesystem::getMimeType($originalSharePath); + $shareTmpl['previewSupported'] = \OC::$server->getPreviewManager()->isMimeSupported($shareTmpl['mimetype']); $shareTmpl['dirToken'] = $linkItem['token']; $shareTmpl['sharingToken'] = $token; $shareTmpl['server2serversharing'] = Helper::isOutgoingServer2serverShareEnabled(); |