mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Debug Message when shortcode class not loading.
This commit is contained in:
@@ -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>");
|
||||||
|
Reference in New Issue
Block a user