summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2010-08-05 21:11:14 +0200
committerGreg Aker <greg.aker@ellislab.com>2010-08-05 21:11:14 +0200
commit0f6b7c1ce0f0122ba162dc579a34a73438d4955a (patch)
treec49e1a9a819012346bbe3762ae36faa1cc3f6030 /system/helpers
parentcbe3247819be75c34231ea200874044735bd853b (diff)
moving code comment in text helper
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/text_helper.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php
index b7ade7a8f..b85e2aaef 100644
--- a/system/helpers/text_helper.php
+++ b/system/helpers/text_helper.php
@@ -497,19 +497,19 @@ if ( ! function_exists('word_wrap'))
// ------------------------------------------------------------------------
+/**
+ * Ellipsize String
+ *
+ * This function will strip tags from a string, split it at its max_length and ellipsize
+ *
+ * @param string string to ellipsize
+ * @param integer max length of string
+ * @param mixed int (1|0) or float, .5, .2, etc for position to split
+ * @param string ellipsis ; Default '...'
+ * @return string ellipsized string
+ */
if ( ! function_exists('ellipsize'))
{
- /**
- * Ellipsize String
- *
- * This function will strip tags from a string, split it at its max_length and ellipsize
- *
- * @param string string to ellipsize
- * @param integer max length of string
- * @param mixed int (1|0) or float, .5, .2, etc for position to split
- * @param string ellipsis ; Default '...'
- * @return string ellipsized string
- */
function ellipsize($str, $max_length, $position = 1, $ellipsis = '&hellip;')
{
// Strip tags