1
0
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:
Cameron
2021-01-20 12:07:29 -08:00
parent 17dfe4149e
commit ab75f150f8
7 changed files with 39 additions and 25 deletions

View File

@@ -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))
{