BUGFIX Setting $_REQUEST['url'] in cli-script.php to emulate normal request processing

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115115 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-12-16 04:04:06 +00:00
parent 9681134e8e
commit 6e640d1dd6
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ if(isset($_SERVER['argv'][2])) {
$_REQUEST = $_GET;
}
// Set 'url' GET parameter
if(isset($_SERVER['argv'][1])) {
$_REQUEST['url'] = $_SERVER['argv'][1];
$_GET['url'] = $_SERVER['argv'][1];
}
/**
* Include Sapphire's core code
*/