mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Plugin bbcodes fix
This commit is contained in:
@@ -407,6 +407,7 @@ class bbcode_shortcodes extends e_shortcode
|
|||||||
global $pref, $eplug_bb, $bbcode_func, $bbcode_help, $bbcode_filedir, $bbcode_imagedir, $bbcode_helpactive, $bbcode_helptag, $register_bb;
|
global $pref, $eplug_bb, $bbcode_func, $bbcode_help, $bbcode_filedir, $bbcode_imagedir, $bbcode_helpactive, $bbcode_helptag, $register_bb;
|
||||||
|
|
||||||
// if(defsettrue('e_WYSIWYG')){ return; }
|
// if(defsettrue('e_WYSIWYG')){ return; }
|
||||||
|
$eplug_bb = $this->var['eplug_bb'] ? $this->var['eplug_bb'] : array();
|
||||||
|
|
||||||
$bbcode_func = ($this->var['trigger']) ? $this->var['trigger'] : "addtext";
|
$bbcode_func = ($this->var['trigger']) ? $this->var['trigger'] : "addtext";
|
||||||
|
|
||||||
@@ -481,7 +482,7 @@ class bbcode_shortcodes extends e_shortcode
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!empty($eplug_bb))
|
if (!empty($eplug_bb))
|
||||||
{
|
{
|
||||||
foreach($eplug_bb as $val) // allow plugins to plug into it.
|
foreach($eplug_bb as $val) // allow plugins to plug into it.
|
||||||
|
@@ -531,7 +531,8 @@ class e_bbcode
|
|||||||
'trigger' => vartrue($options['trigger']), // For BC
|
'trigger' => vartrue($options['trigger']), // For BC
|
||||||
// 'hint_func' => $helpfunc, // deprecated and unused
|
// 'hint_func' => $helpfunc, // deprecated and unused
|
||||||
// 'hint_active' => $bbcode_helpactive, // deprecated and unused
|
// 'hint_active' => $bbcode_helpactive, // deprecated and unused
|
||||||
'size' => vartrue($helpsize)
|
'size' => vartrue($helpsize),
|
||||||
|
'eplug_bb' => $eplug_bb,
|
||||||
);
|
);
|
||||||
|
|
||||||
$bbcode_shortcodes->setVars($data);
|
$bbcode_shortcodes->setVars($data);
|
||||||
|
Reference in New Issue
Block a user