Merge pull request #1214 from silverstripe-rebelalliance/feature/request_handling

FIX handleAction methods should be protected now
This commit is contained in:
Ingo Schommer 2013-03-20 13:52:45 +01:00
commit 0a13d29e4a

View File

@ -182,7 +182,7 @@ class Controller extends RequestHandler implements TemplateGlobalProvider {
* Controller's default action handler. It will call the method named in $Action, if that method exists.
* If $Action isn't given, it will use "index" as a default.
*/
public function handleAction($request, $action) {
protected function handleAction($request, $action) {
foreach($request->latestParams() as $k => $v) {
if($v || !isset($this->urlParams[$k])) $this->urlParams[$k] = $v;
}