bbcode event formatting issue
This commit is contained in:
parent
4ebd604ca9
commit
863ee9e6dd
@ -449,6 +449,8 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
|
|||||||
$md = new Markdownify(false, false, false);
|
$md = new Markdownify(false, false, false);
|
||||||
$Text = $md->parseString($Text);
|
$Text = $md->parseString($Text);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// It also adds backslashes to our attempt at getting around the html entity preservation for some weird reason.
|
// It also adds backslashes to our attempt at getting around the html entity preservation for some weird reason.
|
||||||
|
|
||||||
$Text = str_replace(array('&\\_lt\\_;','&\\_gt\\_;','&\\_amp\\_;'),array('<','>','&'),$Text);
|
$Text = str_replace(array('&\\_lt\\_;','&\\_gt\\_;','&\\_amp\\_;'),array('<','>','&'),$Text);
|
||||||
|
@ -550,7 +550,6 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
|
|||||||
// process [observer] tags before we do anything else because we might
|
// process [observer] tags before we do anything else because we might
|
||||||
// be stripping away stuff that then doesn't need to be worked on anymore
|
// be stripping away stuff that then doesn't need to be worked on anymore
|
||||||
|
|
||||||
|
|
||||||
if($cache)
|
if($cache)
|
||||||
$observer = false;
|
$observer = false;
|
||||||
else
|
else
|
||||||
@ -1028,7 +1027,7 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
|
|||||||
// Summary (e.g. title) is required, earlier revisions only required description (in addition to
|
// Summary (e.g. title) is required, earlier revisions only required description (in addition to
|
||||||
// start which is always required). Allow desc with a missing summary for compatibility.
|
// start which is always required). Allow desc with a missing summary for compatibility.
|
||||||
|
|
||||||
if ((x($ev,'desc') || x($ev,'summary')) && x($ev,'start')) {
|
if ((x($ev,'desc') || x($ev,'summary')) && x($ev,'dtstart')) {
|
||||||
|
|
||||||
$sub = format_event_html($ev);
|
$sub = format_event_html($ev);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user