allow 4 arguments passed to hook

This commit is contained in:
Uwe Steinmann 2019-12-13 14:27:58 +01:00
parent c2e48e9ab4
commit 167c8a41e3

View File

@ -203,6 +203,9 @@ class SeedDMS_Controller_Common {
foreach($GLOBALS['SEEDDMS_HOOKS']['controller'][lcfirst($tmp)] as $hookObj) {
if (method_exists($hookObj, $hook)) {
switch(func_num_args()) {
case 4:
$result = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2), func_get_arg(3));
break;
case 3:
$result = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
break;