mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 03:54:09 +02:00
Fix for shortcode init() and plugin.xml tweak for Tinymce (show icon).
This commit is contained in:
@@ -445,11 +445,12 @@ class e_parse_shortcode
|
||||
if ($force || !$this->isRegistered($code))
|
||||
{
|
||||
$this->registered_codes[$code] = array('type' => 'class', 'path' => $path, 'class' => $className);
|
||||
|
||||
if (class_exists($className, false))
|
||||
{
|
||||
$this->scClasses[$className] = new $className(); // Required. Test with e107::getScBatch($className)
|
||||
}
|
||||
$this->initShortcodeClass($className);
|
||||
// if (class_exists($className, false))
|
||||
// {
|
||||
// $this->scClasses[$className] = new $className(); // Required. Test with e107::getScBatch($className)
|
||||
// echo "CLASS=:".$className;
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user