From 4b2af337d82580fb211c8950c783f4a5e4b2f48c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 19 Sep 2008 05:54:07 +0000 Subject: [PATCH] Fixed bug publishing homepage using Director::test git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62756 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/RootURLController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/control/RootURLController.php b/core/control/RootURLController.php index b6c45e9cc..d4b40e59b 100755 --- a/core/control/RootURLController.php +++ b/core/control/RootURLController.php @@ -17,7 +17,9 @@ class RootURLController extends Controller { $request = new HTTPRequest("GET", self::get_homepage_urlsegment().'/', $request->getVars(), $request->postVars()); $request->match('$URLSegment//$Action'); - return $controller->handleRequest($request); + $result = $controller->handleRequest($request); + $controller->popCurrent(); + return $result; } /**