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

Merge pull request #898 from Werkov/master

AUTH_USER_CHANGE handler can modify passed data
parents 8457f8ce 9c03f73b
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ class DokuWiki_Auth_Plugin extends DokuWiki_Plugin {
$eventdata = array('type' => $type, 'params' => $params, 'modification_result' => null);
$evt = new Doku_Event('AUTH_USER_CHANGE', $eventdata);
if($evt->advise_before(true)) {
$result = call_user_func_array(array($this, $validTypes[$type]), $params);
$result = call_user_func_array(array($this, $validTypes[$type]), $evt->data['params']);
$evt->data['modification_result'] = $result;
}
$evt->advise_after();
......
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