diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-24 21:33:34 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-24 21:33:34 +0200 |
commit | 684007bbaefe0bb415a1903e2807809623c4b250 (patch) | |
tree | e8af4c5a1e72b90274710133a45ed22c2e787f18 /core/js | |
parent | 0b06eff3a016a274b5f5f01ec1ff225da7d7b639 (diff) | |
download | nextcloud-server-684007bbaefe0bb415a1903e2807809623c4b250.tar.gz nextcloud-server-684007bbaefe0bb415a1903e2807809623c4b250.zip |
fix pathes in contacts
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index b4482185509..25de7c13b74 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -31,6 +31,7 @@ t.cache={}; OC={ webroot:oc_webroot, + appswebroot:oc_appswebroot, currentUser:(typeof oc_current_user!=='undefined')?oc_current_user:false, coreApps:['admin','log','search','settings','core','3rdparty'], /** @@ -54,6 +55,14 @@ OC={ var link=OC.webroot; if(file.substring(file.length-3) == 'php' && !isCore){ link+='/?app=' + app + '&getfile=' + encodeURI(type + '/' + file); + }else if(file.substring(file.length-3) != 'php' && !isCore){ + link=OC.appswebroot; + link+='apps/'; + link+=app; + if(type){ + link+=type+'/'; + } + link+=file; }else{ link+='/'; app+='/'; |