X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcal.php;h=edcbaa7e8ff875ba5da970f2b54f4c7b0cab117e;hb=010ec99b35c2bee8f23060e96c2af3ba5849cf84;hp=8352917784f362cb308aa81593655b6009db4386;hpb=a42104ce435b8a3141fd54473335a011d840d0f9;p=friendica.git diff --git a/mod/cal.php b/mod/cal.php index 8352917784..edcbaa7e8f 100644 --- a/mod/cal.php +++ b/mod/cal.php @@ -1,6 +1,22 @@ . + * * The calendar module * * This calendar is for profile visitors and contains only the events @@ -10,6 +26,7 @@ use Friendica\App; use Friendica\Content\Feature; use Friendica\Content\Nav; +use Friendica\Content\Text\BBCode; use Friendica\Content\Widget; use Friendica\Core\Renderer; use Friendica\Core\Session; @@ -54,14 +71,14 @@ function cal_init(App $a) $account_type = Contact::getAccountType($profile); - $tpl = Renderer::getMarkupTemplate("widget/vcard.tpl"); + $tpl = Renderer::getMarkupTemplate('widget/vcard.tpl'); $vcard_widget = Renderer::replaceMacros($tpl, [ '$name' => $profile['name'], '$photo' => $profile['photo'], '$addr' => $profile['addr'] ?: '', '$account_type' => $account_type, - '$about' => $profile['about'] ?: '', + '$about' => BBCode::convert($profile['about'] ?: ''), ]); $cal_widget = Widget\CalendarExport::getHTML();