mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
35a30db204
commit
3167c05395
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user