Changeset 3352
- Timestamp:
- 08/21/2008 04:48:22 AM (3 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/text.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/text.php
r3326 r3352 23 23 { 24 24 $limit = (int) $limit; 25 $end_char = ($end_char === NULL) ? ' …' : $end_char;25 $end_char = ($end_char === NULL) ? '…' : $end_char; 26 26 27 27 if (trim($str) === '') … … 49 49 public static function limit_chars($str, $limit = 100, $end_char = NULL, $preserve_words = FALSE) 50 50 { 51 $end_char = ($end_char === NULL) ? ' …' : $end_char;51 $end_char = ($end_char === NULL) ? '…' : $end_char; 52 52 53 53 $limit = (int) $limit;
