1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Added {THEME} shortcode (path) to core shortcodes.

This commit is contained in:
Cameron
2021-06-01 16:07:38 -07:00
parent 8023a2b9f6
commit 3a71366954
4 changed files with 10 additions and 4 deletions

View File

@@ -1263,7 +1263,7 @@ class e_parse_shortcode
if (is_readable(e_CORE.'shortcodes/single/'.strtolower($code).'.php'))
{
$_function = strtolower($code).'_shortcode';
$_class = strtolower($code);
$_class = ($code === 'sitelinks_alt') ? sitelinks_alt : null; // all others are plain functions.
$_path = e_CORE.'shortcodes/single/'.strtolower($code).'.php';
include_once($_path);
@@ -1274,7 +1274,7 @@ class e_parse_shortcode
// SecretR - fix array(parm, sc_mode) causing parm to become an array, see issue 424
if(!method_exists($_class, $_function))
{
trigger_error($_function." doesn't exist in ".$_path, E_USER_NOTICE);
trigger_error("Method ".$_function." doesn't exist in class ".$_class." within file ".$_path);
}
else
{