From: <par...@us...> - 2009-05-20 17:13:32
|
Update of /cvsroot/phpicalendar/phpicalendar/functions/init In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3812/functions/init Modified Files: sanitize.php Log Message: Add ellipsis to strings truncated by chopToWordCount() Index: sanitize.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init/sanitize.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sanitize.php 20 May 2009 17:10:10 -0000 1.4 --- sanitize.php 20 May 2009 17:13:19 -0000 1.5 *************** *** 43,47 **** $last_word = array_slice($words, $count, 1, true); $pos = key($last_word); ! $string = substr($string, 0, $pos); } return $string; --- 43,47 ---- $last_word = array_slice($words, $count, 1, true); $pos = key($last_word); ! $string = substr($string, 0, $pos) . '...'; } return $string; |