fix OC_HELPER::linkTo again
This commit is contained in:
parent
da2c9aa807
commit
7f987b84a5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue