]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix OC_HELPER::linkTo again
authorRobin Appelman <icewind1991@gmail.com>
Thu, 2 Jun 2011 18:21:02 +0000 (20:21 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 2 Jun 2011 18:21:02 +0000 (20:21 +0200)
lib/helper.php

index 9faf8861161b944d038c1471940e3bf570ab3c15..072607f742ba3e6781e0798dd12d780f666fac8c 100644 (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;
        }