diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2014-09-03 18:00:01 +0400 |
---|---|---|
committer | Clark Tomlinson <fallen013@gmail.com> | 2014-09-03 18:04:46 +0400 |
commit | 27de0e5621c78bc8e70d060ad217cbf9ec61df83 (patch) | |
tree | 77bae51d5a11f9b17e9e68191a2349ce6d3e0a5d /apps/files_sharing/public.php | |
parent | d64cacec438e379a39fd2e791020f417b3737d9b (diff) |
Hiding add to your own cloud if server2server sharing is not enabled
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index bcf99d01edb..63938201eb2 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -1,5 +1,7 @@ <?php // Load other apps for file previews +use OCA\Files_Sharing\Helper; + OC_App::loadApps(); $appConfig = \OC::$server->getAppConfig(); @@ -132,6 +134,7 @@ if (isset($path)) { $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path)); $tmpl->assign('dirToken', $linkItem['token']); $tmpl->assign('sharingToken', $token); + $tmpl->assign('server2serversharing', Helper::isOutgoingServer2serverShareEnabled()); $tmpl->assign('protected', isset($linkItem['share_with']) ? 'true' : 'false'); $urlLinkIdentifiers= (isset($token)?'&t='.$token:'') |