feed.php: hyperlink urls in description and remove an erroneous setDescription

This commit is contained in:
Leho Kraav 2010-12-26 17:18:14 +02:00 committed by Andrew McMillan
parent 4b4b21ee45
commit 338cb7f35d

View File

@ -158,9 +158,8 @@ function caldav_get_feed( $request ) {
if ( $p_description != null && $p_description->Value() != '' ) {
$content .= '<br />'
.'<br />'
.'<strong>' . translate('Description') . '</strong>:<br />' . ( nl2br($p_description->Value()) )
.'<strong>' . translate('Description') . '</strong>:<br />' . ( nl2br(hyperlink($p_description->Value())) )
;
if ( $p_description->Value() != '' ) $item->setDescription($p_description->Value());
}
$item->setContent($content);