1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 05:07:27 +02:00

Debug Message when shortcode class not loading.

This commit is contained in:
Cameron
2017-11-03 13:16:43 -07:00
parent 3c9a549163
commit ad485cd198

View File

@@ -353,6 +353,7 @@ class e_parse_shortcode
*/ */
$path = null; $path = null;
$manualCall = false;
if(trim($className)==""){ return null; } if(trim($className)==""){ return null; }
@@ -450,6 +451,8 @@ class e_parse_shortcode
if (is_readable($path)) if (is_readable($path))
{ {
require_once($path); require_once($path);
// e107::getDebug()->log("Loading Class '".$className."' in <b>".$path."</b>");
if (class_exists($className, false)) // don't allow __autoload() if (class_exists($className, false)) // don't allow __autoload()
{ {
// register instance directly to allow override // register instance directly to allow override
@@ -463,9 +466,9 @@ class e_parse_shortcode
echo "<div class='alert alert-danger'>Couldn't Load: <b>".$path."</b> with class-name:<b> {$className}</b> and pluginName <b>{$pluginName}</b></div>"; echo "<div class='alert alert-danger'>Couldn't Load: <b>".$path."</b> with class-name:<b> {$className}</b> and pluginName <b>{$pluginName}</b></div>";
} }
} }
elseif(E107_DBG_INCLUDES) else
{ {
// echo "<h3>Couldn't Find Class '".$className."' in <b>".$path."</b></h3>"; e107::getDebug()->log("Couldn't Find Class '".$className."' in <b>".$path."</b>");
} }
// e107::getDebug()->log( "<div class='alert alert-danger'>Couldn't Load: <b>".$path."</b> with class-name:<b> {$className}</b> and pluginName <b>{$pluginName}</b></div>"); // e107::getDebug()->log( "<div class='alert alert-danger'>Couldn't Load: <b>".$path."</b> with class-name:<b> {$className}</b> and pluginName <b>{$pluginName}</b></div>");