From 69100325cab4925bf6e5d209ec20db176158169f Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 11 Aug 2008 05:55:31 +0000 Subject: [PATCH] BUGFIX: Further fixes to Director::test() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60404 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/Director.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/control/Director.php b/core/control/Director.php index b2f5b42ae..892305677 100644 --- a/core/control/Director.php +++ b/core/control/Director.php @@ -162,15 +162,15 @@ class Director { $existingSessionVars = $_SESSION; // Replace the superglobals with appropriate test values - $_REQUEST = array_merge((array)$getVars, (array)$post); + $_REQUEST = array_merge((array)$getVars, (array)$postVars); $_GET = (array)$getVars; - $_POST = (array)$post; + $_POST = (array)$postVars; $_SESSION = $session ? $session->inst_getAll() : array(); $req = new HTTPRequest($httpMethod, $url, $getVars, $postVars, $body); if($headers) foreach($headers as $k => $v) $req->addHeader($k, $v); $result = Director::handleRequest($req, $session); - + // Restore the superglobals $_REQUEST = $existingRequestVars; $_GET = $existingGetVars;