Skip to content

Commit

Permalink
Merge pull request #1214 from silverstripe-rebelalliance/feature/requ…
Browse files Browse the repository at this point in the history
…est_handling

FIX handleAction methods should be protected now
  • Loading branch information
chillu committed Mar 20, 2013
2 parents a03d1e6 + a193666 commit 0a13d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/Controller.php
Expand Up @@ -182,7 +182,7 @@ public function handleRequest(SS_HTTPRequest $request, DataModel $model) {
* 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;
}
Expand Down

0 comments on commit 0a13d29

Please sign in to comment.