From 7ca01a65dd353a06533af7bf0e8fabaa7cdbd960 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 9 Jun 2015 16:33:26 +0200 Subject: Disable video preview if previews are disabled --- apps/files_sharing/public.php | 1 + apps/files_sharing/templates/public.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 1145b2ce2a9..9f4efa6d54b 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -136,6 +136,7 @@ if (isset($path)) { $tmpl->assign('sharingToken', $token); $tmpl->assign('server2serversharing', Helper::isOutgoingServer2serverShareEnabled()); $tmpl->assign('protected', isset($linkItem['share_with']) ? 'true' : 'false'); + $tmpl->assign('previewEnabled', \OC::$server->getConfig()->getSystemValue('enable_previews', true)); $urlLinkIdentifiers= (isset($token)?'&t='.$token:'') .(isset($_GET['dir'])?'&dir='.$_GET['dir']:'') diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 46bf90b1b41..d4bb255f24e 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -54,7 +54,7 @@ $previewSupported = OC\Preview::isMimeSupported($_['mimetype']) ? 'true' : 'fals - +