From: Joas Schilling Date: Thu, 9 Apr 2015 10:30:18 +0000 (+0200) Subject: Correctly generate the doc link via go.php X-Git-Tag: v8.1.0alpha1~51^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f51beac23c48384103457c26cda71a7c7f42fc1;p=nextcloud-server.git Correctly generate the doc link via go.php --- 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 += '