From 6e640d1dd6c356ef3bd3a41066b13205a390bcfa Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Dec 2010 04:04:06 +0000 Subject: [PATCH] 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 --- cli-script.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli-script.php b/cli-script.php index 8440233a1..6bbe64d92 100755 --- a/cli-script.php +++ b/cli-script.php @@ -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 */