1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Frontend scripts tests. (may break some things)

This commit is contained in:
Cameron
2021-01-19 18:52:56 -08:00
parent ce1273f8a4
commit b19f9ffbc3
41 changed files with 312 additions and 395 deletions

View File

@@ -1266,12 +1266,14 @@ class e_parse_shortcode
$_class = strtolower($code);
$_path = e_CORE.'shortcodes/single/'.strtolower($code).'.php';
include_once(e_CORE.'shortcodes/single/'.strtolower($code).'.php');
include_once($_path);
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 = call_user_func(array($_class, $_function), $parm, $sc_mode);
$ret = e107::callMethod($_class, $_function, $parm, $sc_mode); // v2.3.1
}
elseif (function_exists($_function))
{