X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcal.php;h=edcbaa7e8ff875ba5da970f2b54f4c7b0cab117e;hb=221a659abeaf3bda3cefd88c80d1b7814f168f3e;hp=9e32b87d6f60bc829eb8a9c7c3936b3c855ddc4b;hpb=92692218255145124fb553d6b61d1d9fed27da19;p=friendica.git diff --git a/mod/cal.php b/mod/cal.php index 9e32b87d6f..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'] != "") ? $profile['addr'] : ""), + '$addr' => $profile['addr'] ?: '', '$account_type' => $account_type, - '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""), + '$about' => BBCode::convert($profile['about'] ?: ''), ]); $cal_widget = Widget\CalendarExport::getHTML();