mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix OC_HELPER::linkTo again
This commit is contained in:
parent
da2c9aa807
commit
7f987b84a5
1 changed files with 4 additions and 5 deletions
|
|
@ -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 a new issue