[Console] Fixed an error into the 'ui_print_truncate_text' function

This commit is contained in:
Alejandro Gallardo Escobar 2017-11-06 15:18:55 +01:00
parent 849eba10d4
commit 83becb3e80
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ function ui_print_truncate_text($text, $numChars = GENERIC_SIZE_TEXT, $showTextI
$text_html_decoded = io_safe_output($text);
$text_has_entities = $text != $text_html_decoded;
if (mb_strlen($text, "UTF-8") > ($numChars)) {
if (mb_strlen($text_html_decoded, "UTF-8") > ($numChars)) {
// '/2' because [...] is in the middle of the word.
$half_length = intval(($numChars - 3) / 2);