mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
added function to initialise the shortcode class
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/shortcode_handler.php,v $
|
||||
| $Revision: 1.21 $
|
||||
| $Date: 2009-01-15 20:18:46 $
|
||||
| $Revision: 1.22 $
|
||||
| $Date: 2009-01-15 22:04:45 $
|
||||
| $Author: lisa_ $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -48,6 +48,16 @@ function register_shortcode($classFunc, $codes, $path='', $force=false)
|
||||
}
|
||||
}
|
||||
|
||||
function initShortcodeClass($class)
|
||||
{
|
||||
$e107 = e107::getInstance();
|
||||
$sc = &$e107->tp->e_sc;
|
||||
if(class_exists($class))
|
||||
{
|
||||
$sc->scClasses[$class] = new $class;
|
||||
}
|
||||
}
|
||||
|
||||
class e_shortcode
|
||||
{
|
||||
var $scList = array(); // The actual code - added by parsing files or when plugin codes encountered. Array key is the shortcode name.
|
||||
|
Reference in New Issue
Block a user