use title in events reminder not description

This commit is contained in:
rabuzarus 2015-06-09 14:26:47 +02:00
parent 18e44001e5
commit 66a51f37b2
1 changed files with 7 additions and 4 deletions

View File

@ -1858,9 +1858,11 @@ if(! function_exists('get_events')) {
$md = datetime_convert('UTC','UTC',$rr['start'],'Y/m');
$md .= "/#link-".$rr['id'];
$title = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... ';
if(! $title)
$title = t('[No description]');
$title = substr($rr['summary'],0,32) . '... ';
$description = substr(strip_tags(bbcode($rr['desc'])),0,32) . '... ';
if(! $description)
$description = t('[No description]');
$strt = datetime_convert('UTC',$rr['convert'] ? $a->timezone : 'UTC',$rr['start']);
@ -1873,6 +1875,7 @@ if(! function_exists('get_events')) {
$rr['link'] = $md;
$rr['title'] =$title;
$rr['description'] = $desciption;
$rr['date'] = day_translate(datetime_convert('UTC', $rr['adjust'] ? $a->timezone : 'UTC', $rr['start'], $bd_format)) . (($today) ? ' ' . t('[today]') : '');
$rr['startime'] = $strt;
$rr['today'] = $today;