Skip to content

Commit

Permalink
Update Event.php
Browse files Browse the repository at this point in the history
changed to make description fit on one line in iCal export
  • Loading branch information
trf000 committed Jun 14, 2013
1 parent 677e486 commit e7ec0d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/calendar/class/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,9 @@ public function icalTags()
}
}

$description = strip_tags(str_ireplace('<br />', '\n', $this->getDescription()));
$description = strip_tags(str_ireplace('', '', $this->getDescription()));
$description = preg_replace(array('/^\s\s+/', '/\s\s+$/', '/\s\s+/u'), array('', '', ' '), $description);

if (!empty($description)) {
$tpl['DESCRIPTION'] = & $description;
}
Expand All @@ -862,4 +864,4 @@ public function icalTags()
}


?>
?>

0 comments on commit e7ec0d1

Please sign in to comment.