]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove comments
authorGeorg Ehrke <dev@georgswebsite.de>
Tue, 8 May 2012 15:07:20 +0000 (17:07 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Tue, 8 May 2012 15:07:50 +0000 (17:07 +0200)
lib/helper.php

index f5e247ca9ebab9cea9c35dfc85319e1ca1472813..31819d2e3fcacd7a73e6f59ffaf5d8e8b1348c24 100644 (file)
@@ -41,15 +41,15 @@ class OC_Helper {
                        $app .= '/';
                        // Check if the app is in the app folder
                        if( file_exists( OC::$APPSROOT . '/apps/'. $app.$file )){
-                               //if(substr($file, -3) == 'php' || substr($file, -3) == 'css'){ 
+                               if(substr($file, -3) == 'php' || substr($file, -3) == 'css'){   
                                        if(substr($app, -1, 1) == '/'){
                                                $app = substr($app, 0, strlen($app) - 1);
                                        }
                                        $urlLinkTo =  OC::$WEBROOT . '/?app=' . $app;
                                        $urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):'';
-                               //}else{
-                               //      $urlLinkTo =  OC::$APPSWEBROOT . '/apps/' . $app . $file;
-                               //}
+                               }else{
+                                       $urlLinkTo =  OC::$APPSWEBROOT . '/apps/' . $app . $file;
+                               }
                        }
                        else{
                                $urlLinkTo =  OC::$WEBROOT . '/' . $app . $file;