From: Robin Appelman Date: Thu, 2 Jun 2011 18:21:02 +0000 (+0200) Subject: fix OC_HELPER::linkTo again X-Git-Tag: v3.0~267^2~558^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f987b84a52f8351923db8a3c5db945480859ec8;p=nextcloud-server.git fix OC_HELPER::linkTo again --- diff --git a/lib/helper.php b/lib/helper.php index 9faf8861161..072607f742b 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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; }