FIX change action variable source to getViewer

Previously we were using the request to get the action parameter. However for custom URL structures and nested controllers, this won't work and causes template selection to break.
This commit is contained in:
Will Morgan 2014-04-08 12:55:57 +01:00
parent 4c69d42bd2
commit 438fe02116

View File

@ -154,7 +154,7 @@ class Controller extends RequestHandler implements TemplateGlobalProvider {
Debug::message("Request handler $body->class object to $this->class controller;"
. "rendering with template returned by $body->class::getViewer()");
}
$body = $body->getViewer($request->latestParam('Action'))->process($body);
$body = $body->getViewer($this->getAction())->process($body);
}
$this->response->setBody($body);