summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-07 20:25:44 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-07 20:26:09 +0200
commit5b7cefb1e596013c7ee56d082ecb0731621ef421 (patch)
tree688a4fe38336d452b794024548d7a59264ae48b9 /lib/helper.php
parent5a1ea62437673d24407515eb2deabdac1210bfcb (diff)
downloadnextcloud-server-5b7cefb1e596013c7ee56d082ecb0731621ef421.tar.gz
nextcloud-server-5b7cefb1e596013c7ee56d082ecb0731621ef421.zip
make ampache work with remote.php
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 5422d88398d..757f562bfed 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;