diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-08 17:07:20 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-08 17:07:50 +0200 |
commit | 52717d2a1bf5dd4089c76a44076ecf92a22ee82f (patch) | |
tree | bac99b80dcd95104ded3c6c8005d1ac2fbca496d /lib/helper.php | |
parent | f6df71b74d556b086bc5c05c141267cd02d93d2f (diff) | |
download | nextcloud-server-52717d2a1bf5dd4089c76a44076ecf92a22ee82f.tar.gz nextcloud-server-52717d2a1bf5dd4089c76a44076ecf92a22ee82f.zip |
remove comments
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 8 |
1 files changed, 4 insertions, 4 deletions
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; |