mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update Controller to allow extension in handleAction()
Controller's parent class (RequestHandler) has two extensions in its handleAction() method that are obscured by Controller's implementation.
This commit is contained in:
parent
7484b4f5d9
commit
de09bffd84
@ -173,6 +173,8 @@ class Controller extends RequestHandler implements TemplateGlobalProvider {
|
|||||||
* If $Action isn't given, it will use "index" as a default.
|
* If $Action isn't given, it will use "index" as a default.
|
||||||
*/
|
*/
|
||||||
protected function handleAction($request, $action) {
|
protected function handleAction($request, $action) {
|
||||||
|
$this->extend('beforeCallActionHandler', $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