some event work
This commit is contained in:
parent
384db9d10d
commit
c533c62c64
@ -1174,6 +1174,7 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
|
||||
|
||||
$Text = preg_replace("/\[event\-start\](.*?)\[\/event\-start\]/ism",$sub,$Text);
|
||||
|
||||
$Text = preg_replace("/\event\](.*?)\[\/event\]/ism",'',$Text);
|
||||
$Text = preg_replace("/\[event\-summary\](.*?)\[\/event\-summary\]/ism",'',$Text);
|
||||
$Text = preg_replace("/\[event\-description\](.*?)\[\/event\-description\]/ism",'',$Text);
|
||||
$Text = preg_replace("/\[event\-finish\](.*?)\[\/event\-finish\]/ism",'',$Text);
|
||||
|
@ -210,6 +210,10 @@ function format_event_bbcode($ev) {
|
||||
|
||||
$o = '';
|
||||
|
||||
if($ev['event_vdata']) {
|
||||
$o .= '[event]' . $ev['event_vdata'] . '[/event]';
|
||||
}
|
||||
|
||||
if($ev['summary'])
|
||||
$o .= '[event-summary]' . $ev['summary'] . '[/event-summary]';
|
||||
|
||||
|
Reference in New Issue
Block a user