Browse Source

System update (text description)

markseu 8 years ago
parent
commit
db4346c627
1 changed files with 2 additions and 1 deletions
  1. 2 1
      system/plugins/core.php

+ 2 - 1
system/plugins/core.php

@@ -3020,9 +3020,10 @@ class YellowToolbox
 	}
 	
 	// Create description from text string
-	function createTextDescription($text, $lengthMax, $removeHtml = true, $endMarker = "", $endMarkerText = "")
+	function createTextDescription($text, $lengthMax = 0, $removeHtml = true, $endMarker = "", $endMarkerText = "")
 	{
 		if(preg_match("/^<h1>.*?<\/h1>(.*)$/si", $text, $matches)) $text = $matches[1];
+		if($lengthMax==0) $lengthMax = strlenu($text);
 		if($removeHtml)
 		{
 			while(true)