summaryrefslogtreecommitdiffstats
path: root/core/js/js.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 /core/js/js.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 'core/js/js.js')
-rw-r--r--core/js/js.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 3f7ad233e31..e7e1c301bb5 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -99,7 +99,7 @@ var OCP = {},
* @return {string} the url
*/
linkToRemoteBase:function(service) {
- return OC.webroot + '/remote.php/' + service;
+ return OC.getRootPath() + '/remote.php/' + service;
},
/**
@@ -119,7 +119,7 @@ var OCP = {},
*/
linkToOCS: function(service, version) {
version = (version !== 2) ? 1 : 2;
- return window.location.protocol + '//' + window.location.host + OC.webroot + '/ocs/v' + version + '.php/' + service + '/';
+ return window.location.protocol + '//' + window.location.host + OC.getRootPath() + '/ocs/v' + version + '.php/' + service + '/';
},
/**
@@ -157,10 +157,10 @@ var OCP = {},
}
if(oc_config.modRewriteWorking == true) {
- return OC.webroot + _build(url, params);
+ return OC.getRootPath() + _build(url, params);
}
- return OC.webroot + '/index.php' + _build(url, params);
+ return OC.getRootPath() + '/index.php' + _build(url, params);
},
/**
@@ -172,7 +172,7 @@ var OCP = {},
*/
filePath:function(app,type,file){
var isCore=OC.coreApps.indexOf(app)!==-1,
- link=OC.webroot;
+ link=OC.getRootPath();
if(file.substring(file.length-3) === 'php' && !isCore){
link+='/index.php/apps/' + app;
if (file != 'index.php') {