From: <par...@us...> - 2009-05-20 17:10:17
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3322/functions Modified Files: date_functions.php Log Message: Force makeTitle() to limit the amount of text put into a title Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** date_functions.php 14 May 2009 21:24:46 -0000 1.53 --- date_functions.php 20 May 2009 17:10:09 -0000 1.54 *************** *** 164,168 **** global $timeFormat, $dateFormat_week; ! $event_text = stripslashes(urldecode($arr["event_text"])); if ($time == -1) { $start = localizeDate($dateFormat_week, $arr['start_unixtime']); --- 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']); *************** *** 178,185 **** if (!empty($arr['description'])) { ! $title .= "\n\nDescription: ".urldecode($arr['description']); } if (!empty($arr['location'])) { ! $title .= "\n\nLocation: ".urldecode($arr['location']); } $title = trim($title); --- 178,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); |