mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
allow 4 arguments passed to hook
This commit is contained in:
parent
c2e48e9ab4
commit
167c8a41e3
|
@ -203,6 +203,9 @@ class SeedDMS_Controller_Common {
|
||||||
foreach($GLOBALS['SEEDDMS_HOOKS']['controller'][lcfirst($tmp)] as $hookObj) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['controller'][lcfirst($tmp)] as $hookObj) {
|
||||||
if (method_exists($hookObj, $hook)) {
|
if (method_exists($hookObj, $hook)) {
|
||||||
switch(func_num_args()) {
|
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:
|
case 3:
|
||||||
$result = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
|
$result = $hookObj->$hook($this, func_get_arg(1), func_get_arg(2));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user