Add possibility to define a different class for callback functions
This commit is contained in:
1 parent
17ceff91c5
commit
83c64b941c
2 files changed
+11
-4
No files matched your search
@@ -349,7 +349,14 @@ class acp_portal
|
||||
else
|
||||
{
|
||||
$args = array($this->new_config[$config_key], $config_key, $module_id);
|
||||
$func = array($c_class, $vars['method']);
|
||||
if (!is_array($vars['method']))
|
||||
{
|
||||
$func = array($c_class, $vars['method']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$func = $vars['method'];
|
||||
}
|
||||
$content = call_user_func_array($func, $args);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user