Pārlūkot izejas kodu

Removed the ellipsis function which is not used in anywhere in the FusionPBX project.

FusionPBX 5 gadi atpakaļ
vecāks
revīzija
a83181c5c2
1 mainītis faili ar 0 papildinājumiem un 18 dzēšanām
  1. 0 18
      resources/functions.php

+ 0 - 18
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 = '') {