diff options
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/js/js.js b/core/js/js.js index 89a20a529f3..a1ad0c77184 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -31,7 +31,7 @@ t.cache={}; OC={ webroot:oc_webroot, - appswebroot:oc_appswebroot, + appswebroots:oc_appswebroots, currentUser:(typeof oc_current_user!=='undefined')?oc_current_user:false, coreApps:['', 'admin','log','search','settings','core','3rdparty'], /** @@ -63,10 +63,8 @@ OC={ link+= file; } }else if(file.substring(file.length-3) != 'php' && !isCore){ - link=OC.appswebroot; - link+='/'; - link+='apps/'; - link+=app+'/'; + link=OC.appswebroots[app]; + link+='/'+app+'/'; if(type){ link+=type+'/'; } |