Fixes in index.php
This commit is contained in:
parent
e833dafd5f
commit
841b16266a
1 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ class Config {
|
|||
|
||||
static public $home_module='welcome';
|
||||
|
||||
static public $modules_allowed=['welcome' => true];
|
||||
static public $modules_allowed=['welcome'];
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ function get_route($path_info) {
|
|||
|
||||
$controller='modules/'.$arr_path[1].'/controllers/index.php';
|
||||
|
||||
if(Config::$modules_allowed[$arr_path[1]]) {
|
||||
if(in_array($arr_path[1], Config::$modules_allowed)) {
|
||||
|
||||
return \PhangoApp\PhaRouter\get_controller($controller, []);
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ function get_route($path_info) {
|
|||
|
||||
$controller='modules/'.$arr_path[1].'/controllers/'.$arr_path[2].'.php';
|
||||
|
||||
if(Config::$modules_allowed[$arr_path[1]]) {
|
||||
if(in_array($arr_path[1], Config::$modules_allowed)) {
|
||||
|
||||
return \PhangoApp\PhaRouter\get_controller($controller, []);
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ function get_route($path_info) {
|
|||
|
||||
$controller='modules/'.$arr_path[1].'/controllers/'.$arr_path[2].'.php';
|
||||
|
||||
if(Config::$modules_allowed[$arr_path[1]]) {
|
||||
if(in_array($arr_path[1], Config::$modules_allowed)) {
|
||||
|
||||
$args=array_slice($arr_path, 2, count($arr_path));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue