From: <par...@us...> - 2009-05-21 15:06:20
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6120/functions Modified Files: date_functions.php Log Message: Make title generation more concise Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** date_functions.php 20 May 2009 17:10:09 -0000 1.54 --- date_functions.php 21 May 2009 15:06:12 -0000 1.55 *************** *** 164,168 **** global $timeFormat, $dateFormat_week; ! $event_text = chopToWordCount(sanitizeForWeb(urldecode($arr["event_text"])), 25); if ($time == -1) { $start = localizeDate($dateFormat_week, $arr['start_unixtime']); --- 164,168 ---- global $timeFormat, $dateFormat_week; ! $event_text = chopToWordCount(sanitizeForWeb(urldecode($arr["event_text"])), 20); if ($time == -1) { $start = localizeDate($dateFormat_week, $arr['start_unixtime']); *************** *** 177,185 **** } - if (!empty($arr['description'])) { - $title .= "\n\nDescription: " . chopToWordCount(sanitizeForWeb(urldecode($arr['description'])), 100); - } if (!empty($arr['location'])) { ! $title .= "\n\nLocation: " . chopToWordCount(sanitizeForWeb(urldecode($arr['location'])), 25); } $title = trim($title); --- 177,185 ---- } if (!empty($arr['location'])) { ! $title .= "\nLocation: " . chopToWordCount(sanitizeForWeb(urldecode($arr['location'])), 20); ! } ! if (!empty($arr['description'])) { ! $title .= "\n\n" . chopToWordCount(sanitizeForWeb(urldecode($arr['description'])), 80); } $title = trim($title); |