From 3167c053954c5f567d17f2fb29cbd51ff489665f Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 4 Oct 2008 04:42:51 +0000 Subject: [PATCH] BUGFIX #2901 - RootURLController didn't properly manipulate the Controller stack git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63635 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/RootURLController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/control/RootURLController.php b/core/control/RootURLController.php index d4b40e59b..32225370e 100755 --- a/core/control/RootURLController.php +++ b/core/control/RootURLController.php @@ -10,15 +10,16 @@ class RootURLController extends Controller { public function handleRequest($request) { self::$is_at_root = true; + $this->pushCurrent(); $controller = new ModelAsController(); - $controller->pushCurrent(); $request = new HTTPRequest("GET", self::get_homepage_urlsegment().'/', $request->getVars(), $request->postVars()); $request->match('$URLSegment//$Action'); $result = $controller->handleRequest($request); - $controller->popCurrent(); + + $this->popCurrent(); return $result; }