mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
PHP8 Fixes. Renamed 'search' class (in search.php) to 'search_front' to avoid conflicts.
This commit is contained in:
@@ -1272,8 +1272,15 @@ class e_parse_shortcode
|
||||
if (class_exists($_class, false)) // prevent __autoload - performance
|
||||
{
|
||||
// SecretR - fix array(parm, sc_mode) causing parm to become an array, see issue 424
|
||||
// $ret = call_user_func(array($_class, $_function), $parm, $sc_mode);
|
||||
$ret = e107::callMethod($_class, $_function, $parm, $sc_mode); // v2.3.1
|
||||
if(!method_exists($_class, $_function))
|
||||
{
|
||||
trigger_error($_function." doesn't exist in ".$_path, E_USER_NOTICE);
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret = call_user_func(array($_class, $_function), $parm, $sc_mode);
|
||||
}
|
||||
|
||||
}
|
||||
elseif (function_exists($_function))
|
||||
{
|
||||
|
Reference in New Issue
Block a user