aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-09 07:44:26 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-09 13:53:59 +0200
commit9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e (patch)
treec755177c3886de1498010820b9a547a5314c8d41 /apps/files_sharing/js/public.js
parent8b38b601e5bd07559bb86d38132be31820c41627 (diff)
downloadnextcloud-server-9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e.tar.gz
nextcloud-server-9af69ca2a5ed74acefdaedad6d189bdfd9e61e0e.zip
Fix usage of deprecated OC.webroot
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 3328b1663d1..2b7cea8d0dc 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -343,7 +343,7 @@ OCA.Sharing.PublicApp = {
_legacyCreateFederatedShare: function (remote, token, owner, ownerDisplayName, name, isProtected) {
var self = this;
- var location = window.location.protocol + '//' + window.location.host + OC.webroot;
+ var location = window.location.protocol + '//' + window.location.host + OC.getRootPath();
if(remote.substr(-1) !== '/') {
remote += '/'