From 7f987b84a52f8351923db8a3c5db945480859ec8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 2 Jun 2011 20:21:02 +0200 Subject: [PATCH] fix OC_HELPER::linkTo again --- lib/helper.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } -- 2.39.5