1
0
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:
CaMer0n
2012-08-24 09:05:32 +00:00
parent d3ed3d63d3
commit a453717fd6
3 changed files with 15 additions and 10 deletions

View File

@@ -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;
// }
}
}
}