Update index.php

This commit is contained in:
Namhyeon Go 2018-03-05 02:08:17 +09:00 committed by GitHub
parent b9ec4a2ee6
commit c419cdd9e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ if(!array_key_empty('route', $_REQUEST)) {
// load route
if(empty($route)) {
$route = 'welcome';
$route = array_key_empty('default_route', $config) ? 'welcome' : $config['default_route'];
} else {
$route_names = explode('/', $route);
if(count($route) > 1) {