mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit db4346c6277d4bd2d91a04bc7550db39fdb45e25
parent d1c2c0a93498a3cd9c56b82081b4fead1e68eb31
Author: markseu <mark2011@mayberg.se>
Date:   Wed, 25 Jan 2017 22:31:17 +0100

System update (text description)

Diffstat:
Msystem/plugins/core.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/system/plugins/core.php b/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)