diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-24 21:54:09 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-24 21:54:09 +0200 |
commit | d6346b5b0bece4feecc36b7b97308dd3a5a4d6cc (patch) | |
tree | e4d478655f73d938cc46ca3c38cd153d3fc2c702 /core | |
parent | a85d49833b1aa4d616271cf0f168b5a4294d9810 (diff) | |
download | nextcloud-server-d6346b5b0bece4feecc36b7b97308dd3a5a4d6cc.tar.gz nextcloud-server-d6346b5b0bece4feecc36b7b97308dd3a5a4d6cc.zip |
fix OC.filePath in main js
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/js/js.js b/core/js/js.js index 25de7c13b74..a4369deb283 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -54,15 +54,20 @@ OC={ var isCore=OC.coreApps.indexOf(app)!=-1; var link=OC.webroot; if(file.substring(file.length-3) == 'php' && !isCore){ - link+='/?app=' + app + '&getfile=' + encodeURI(type + '/' + file); + link+='/?app=' + app + '&getfile='; + if(type){ + link+=encodeURI(type + '/'); + } + link+= file; }else if(file.substring(file.length-3) != 'php' && !isCore){ link=OC.appswebroot; + link+='/'; link+='apps/'; - link+=app; + link+=app+'/'; if(type){ link+=type+'/'; } - link+=file; + link+=file; }else{ link+='/'; app+='/'; |