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:
Sam Minnee 2008-08-11 04:40:37 +00:00
parent 3d28c5a23c
commit 75aa4167bf

View File

@ -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);