From 6f51beac23c48384103457c26cda71a7c7f42fc1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 9 Apr 2015 12:30:18 +0200 Subject: [PATCH] Correctly generate the doc link via go.php --- core/js/config.php | 3 ++- core/js/share.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/js/config.php b/core/js/config.php index f2bc24008dc..d6946f671d1 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -112,7 +112,8 @@ $array = array( 'enforcePasswordForPublicLink' => \OCP\Util::isPublicLinkPasswordRequired(), 'sharingDisabledForUser' => \OCP\Util::isSharingDisabledForUser(), 'resharingAllowed' => \OCP\Share::isResharingAllowed(), - 'remoteShareAllowed' => $outgoingServer2serverShareEnabled + 'remoteShareAllowed' => $outgoingServer2serverShareEnabled, + 'federatedCloudShareDoc' => \OC::$server->getURLGenerator()->linkToDocs('user-sharing-federated') ) ) ), diff --git a/core/js/share.js b/core/js/share.js index 29551654435..56925417bfb 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -399,9 +399,9 @@ OC.Share={ html += ''; html += ''; if(oc_appconfig.core.remoteShareAllowed) { - html += ''; + var federatedCloudSharingDoc = ''; + html += federatedCloudSharingDoc.replace('{docLink}', oc_appconfig.core.federatedCloudShareDoc); } html += ''; html += '