fix OC_HELPER::linkTo again

This commit is contained in:
Robin Appelman 2011-06-02 20:21:02 +02:00
parent da2c9aa807
commit 7f987b84a5
1 changed files with 4 additions and 5 deletions

View File

@ -39,11 +39,10 @@ class OC_HELPER {
if(!empty($app)) {
$app .= '/';
}
// Check if the app is in the app folder
if( file_exists( $SERVERROOT . '/apps/'. $app )){
return $WEBROOT . '/apps/' . $app . $file;
// Check if the app is in the app folder
if( file_exists( $SERVERROOT . '/apps/'. $app )){
return $WEBROOT . '/apps/' . $app . $file;
}
}
return $WEBROOT . '/' . $app . $file;
}