diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-11 09:09:52 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-11 09:09:52 -0700 |
commit | 329abfe539371b65c95e3334e436f997ec92879f (patch) | |
tree | 0a3ee6e19be8563af6b6b6d87db795a0e6f463e2 /system/helpers | |
parent | 213807a8073138a98b8daf9fe265e981454aaa50 (diff) | |
parent | 0389dceb475597ecdedf519d27d6d7bb36aa6276 (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/text.php b/system/helpers/text.php index bf82f12a..f7f040cd 100644 --- a/system/helpers/text.php +++ b/system/helpers/text.php @@ -20,7 +20,7 @@ class text_Core { public static function limit_words($str, $limit = 100, $end_char = NULL) { $limit = (int) $limit; - $end_char = ($end_char === NULL) ? '…' : $end_char; + $end_char = ($end_char === NULL) ? '…' : $end_char; if (trim($str) === '') return $str; @@ -46,7 +46,7 @@ class text_Core { */ public static function limit_chars($str, $limit = 100, $end_char = NULL, $preserve_words = FALSE) { - $end_char = ($end_char === NULL) ? '…' : $end_char; + $end_char = ($end_char === NULL) ? '…' : $end_char; $limit = (int) $limit; |