Routing: And start using them from php
This commit is contained in:
parent
db4111f6d5
commit
16dacba490
|
@ -42,8 +42,8 @@ class OC_Helper {
|
||||||
// Check if the app is in the app folder
|
// Check if the app is in the app folder
|
||||||
if( $app_path && file_exists( $app_path.'/'.$file )){
|
if( $app_path && file_exists( $app_path.'/'.$file )){
|
||||||
if(substr($file, -3) == 'php' || substr($file, -3) == 'css'){
|
if(substr($file, -3) == 'php' || substr($file, -3) == 'css'){
|
||||||
$urlLinkTo = OC::$WEBROOT . '/?app=' . $app;
|
$urlLinkTo = OC::$WEBROOT . '/index.php/apps/' . $app;
|
||||||
$urlLinkTo .= ($file!='index.php')?'&getfile=' . urlencode($file):'';
|
$urlLinkTo .= ($file!='index.php') ? '/' . $file : '';
|
||||||
}else{
|
}else{
|
||||||
$urlLinkTo = OC_App::getAppWebPath($app) . '/' . $file;
|
$urlLinkTo = OC_App::getAppWebPath($app) . '/' . $file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue