From: Georg Ehrke Date: Tue, 8 May 2012 15:07:20 +0000 (+0200) Subject: remove comments X-Git-Tag: v4.0.0RC~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52717d2a1bf5dd4089c76a44076ecf92a22ee82f;p=nextcloud-server.git remove comments --- diff --git a/lib/helper.php b/lib/helper.php index f5e247ca9eb..31819d2e3fc 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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;