Prevent extra '/' from being added to url if app is not defined

This commit is contained in:
Michael Gapczynski 2012-05-07 12:35:02 -04:00
parent da4688d804
commit 52d113b9e1
1 changed files with 4 additions and 2 deletions

View File

@ -70,11 +70,13 @@ OC={
link+=file; link+=file;
}else{ }else{
link+='/'; link+='/';
app+='/';
if(!isCore){ if(!isCore){
link+='apps/'; link+='apps/';
} }
link+=app; if (app != '') {
app+='/';
link+=app;
}
if(type){ if(type){
link+=type+'/'; link+=type+'/';
} }