From aa9c7c1277a2409e87a16377e6dd426e240d1c84 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 19 Jun 2020 17:55:46 -0600 Subject: [PATCH] Removed the ellipsis function which is not used in anywhere in the FusionPBX project. --- resources/functions.php | 18 ------------------ 1 file changed, 18 deletions(-) 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 = '') {