[FrameworkBundle] Fixed built-in server router script
This commit is contained in:
parent
d9a0a17e17
commit
519d43158f
@ -23,5 +23,12 @@
|
||||
if (isset($_SERVER['SCRIPT_FILENAME'])) {
|
||||
return false;
|
||||
} else {
|
||||
require 'app.php';
|
||||
$controller = 'app.php';
|
||||
|
||||
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT']
|
||||
. DIRECTORY_SEPARATOR
|
||||
. $controller
|
||||
;
|
||||
|
||||
require $controller;
|
||||
}
|
||||
|
Reference in New Issue
Block a user