remove comments
This commit is contained in:
parent
f6df71b74d
commit
52717d2a1b
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue