Fix in index.php
This commit is contained in:
parent
87edea507b
commit
db97d829b8
1 changed files with 9 additions and 1 deletions
10
index.php
10
index.php
|
|
@ -31,7 +31,15 @@ ob_start();
|
|||
|
||||
Utils::load_config('config');
|
||||
|
||||
$path_info=isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '';
|
||||
if(!PhangoApp\PhaRouter\Config::$get_path_info) {
|
||||
|
||||
$path_info=isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '';
|
||||
}
|
||||
else {
|
||||
|
||||
$path_info=$_GET['PATH_INFO'];
|
||||
|
||||
}
|
||||
|
||||
echo \PhangoApp\PhaRouter\get_route($path_info);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue