From 5f088954bee79a23173bc134f08903496a57fa82 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 11 Jun 2015 00:43:34 +0200 Subject: [PATCH] make full title without dots --- boot.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 57f2315781..ac3e950a95 100644 --- a/boot.php +++ b/boot.php @@ -1858,7 +1858,10 @@ if(! function_exists('get_events')) { $md = datetime_convert('UTC','UTC',$rr['start'],'Y/m'); $md .= "/#link-".$rr['id']; - $title = substr($rr['summary'],0,32) . '... '; + $title = strip_tags(html_entity_decode(bbcode($rr['summary']),ENT_QUOTES,'UTF-8')); + + if(strlen($title) > 35) + $title = substr($title,0,32) . '... '; $description = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... '; if(! $description)