mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
9681134e8e
commit
6e640d1dd6
@ -50,6 +50,12 @@ if(isset($_SERVER['argv'][2])) {
|
|||||||
$_REQUEST = $_GET;
|
$_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
|
* Include Sapphire's core code
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user