mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1214 from silverstripe-rebelalliance/feature/request_handling
FIX handleAction methods should be protected now
This commit is contained in:
commit
0a13d29e4a
@ -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.
|
* 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.
|
* 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) {
|
foreach($request->latestParams() as $k => $v) {
|
||||||
if($v || !isset($this->urlParams[$k])) $this->urlParams[$k] = $v;
|
if($v || !isset($this->urlParams[$k])) $this->urlParams[$k] = $v;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user