Skip to content
Snippets Groups Projects
Commit c7d61a4e authored by Andreas Gohr's avatar Andreas Gohr
Browse files

pass action name by reference. fixes #2117

This fixes plugins that expect that they can change the global $ACT
instead of $event->data in the ACTION_ACT_PREPROCESS event.

This make the whole route a little bit uncleaner but would increase
backwards compatibility.

I'm not sure how widespread the problem is and if adding this is a good
idea.
parent 68667f4a
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,10 @@ class ActionRouter {
* Instantiates the right class, runs permission checks and pre-processing and
* sets $action
*
* @param string $actionname
* @param string $actionname this is passed as a reference to $ACT, for plugin backward compatibility
* @triggers ACTION_ACT_PREPROCESS
*/
protected function setupAction($actionname) {
protected function setupAction(&$actionname) {
$presetup = $actionname;
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment