mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Set [REQUEST_URI] in cli-script for better error reporting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60375 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3d28c5a23c
commit
75aa4167bf
@ -119,6 +119,7 @@ DB::connect($databaseConfig);
|
||||
// Get the request URL
|
||||
// $baseURL = dirname(dirname($_SERVER[SCRIPT_NAME]));
|
||||
$url = $_SERVER['argv'][1];
|
||||
$_SERVER['REQUEST_URI'] = "/$url";
|
||||
|
||||
if(isset($_SERVER['argv'][2])) {
|
||||
parse_str($_SERVER['argv'][2], $_GET);
|
||||
|
Loading…
Reference in New Issue
Block a user