]> git.mxchange.org Git - friendica.git/commitdiff
use title in events reminder not description
authorrabuzarus <>
Tue, 9 Jun 2015 12:26:47 +0000 (14:26 +0200)
committerrabuzarus <>
Tue, 9 Jun 2015 12:26:47 +0000 (14:26 +0200)
boot.php

index 5994b2030ac21c5aa2c045ade6bcb0524758c945..57f2315781000389bb51294e6d993ba8d53912f0 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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']);
 
@@ -1872,7 +1874,8 @@ if(! function_exists('get_events')) {
                                $today = ((substr($strt,0,10) === datetime_convert('UTC',$a->timezone,'now','Y-m-d')) ? true : false);
 
                                $rr['link'] = $md;
-                               $rr['title'] = $title;
+                               $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;