2010-06-25 Sergio Martin <sergio.martin@artica.es>
* include/functions_ui.php: Changed substr() to mb_strimwidth() into printTruncateText function git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2926 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
15b82505a0
commit
e625bc73a4
|
@ -1,3 +1,8 @@
|
|||
2010-06-25 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_ui.php: Changed substr() to
|
||||
mb_strimwidth() into printTruncateText function
|
||||
|
||||
2010-06-25 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* operation/agentes/status_monitor.php: Changed substr() to
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
function printTruncateText($text, $numChars = 25, $showTextInAToopTip = true, $return = true, $showTextInTitle = true) {
|
||||
if (strlen($text) > ($numChars - 1)) {
|
||||
$truncateText = substr($text, 0, ($numChars - 1)) . '…';
|
||||
$truncateText = mb_strimwidth($text, 0, ($numChars - 1)) . '…';
|
||||
|
||||
if ($showTextInTitle) {
|
||||
$truncateText = '<span title="'.$text.'">'.$truncateText.'</span>';
|
||||
|
|
Loading…
Reference in New Issue