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