Fixes in index.php

This commit is contained in:
Antonio de la Rosa 2022-05-01 00:30:37 +02:00
parent 840f74f5c6
commit e833dafd5f
2 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@ class Config {
static public $home_module='welcome';
static public $modules_allowed=['welcome' => false];
static public $modules_allowed=['welcome' => true];
}
@ -51,8 +51,8 @@ function get_route($path_info) {
case 1:
$controller='modules/'.$arr_path[1].'/controllers/index.php';
echo 'pepe';
if(Config::$modules_allowed[$arr_path[1]]==true) {
if(Config::$modules_allowed[$arr_path[1]]) {
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]]==true) {
if(Config::$modules_allowed[$arr_path[1]]) {
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]]==true) {
if(Config::$modules_allowed[$arr_path[1]]) {
$args=array_slice($arr_path, 2, count($arr_path));