Fixes in tests and home module
This commit is contained in:
parent
7440538548
commit
ab69ca747f
2 changed files with 3 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ function get_route($path_info) {
|
|||
|
||||
case 0:
|
||||
|
||||
$controller=\PhangoApp\PhaRouter\Config::$home_module.'/controllers/app.php';
|
||||
$controller=\PhangoApp\PhaRouter\Config::$modules_allowed[\PhangoApp\PhaRouter\Config::$home_module].'/controllers/app.php';
|
||||
|
||||
return \PhangoApp\PhaRouter\get_controller($controller, []);
|
||||
|
||||
|
|
@ -121,7 +121,7 @@ function get_route($path_info) {
|
|||
}
|
||||
else {
|
||||
|
||||
$controller=\PhangoApp\PhaRouter\Config::$home_module.'/controllers/app.php';
|
||||
$controller=\PhangoApp\PhaRouter\Config::$modules_allowed[\PhangoApp\PhaRouter\Config::$home_module].'/controllers/app.php';
|
||||
|
||||
return \PhangoApp\PhaRouter\get_controller($controller, []);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue