diff --git a/resources/functions.php b/resources/functions.php index 5eac3af9e1..47b0e1539e 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -1029,24 +1029,6 @@ function number_pad($number,$n) { } } -// ellipsis nicely truncate long text - if(!function_exists('ellipsis')) { - function ellipsis($string, $max_characters, $preserve_word = true) { - if ($max_characters+$x >= strlen($string)) { return $string; } - if ($preserve_word) { - for ($x = 0; $x < strlen($string); $x++) { - if ($string{$max_characters+$x} == " ") { - return substr($string,0,$max_characters+$x)." ..."; - } - else { continue; } - } - } - else { - return substr($string,0,$max_characters)." ..."; - } - } - } - //function to convert hexidecimal color value to rgb string/array value if (!function_exists('hex_to_rgb')) { function hex_to_rgb($hex, $delim = '') {