#9866 fixed display of notifications with very long text strings
This commit is contained in:
parent
a0f1dacfae
commit
42a8685586
|
@ -1096,6 +1096,11 @@ function notifications_print_dropdown_element($message_info)
|
|||
$message_info['subject'] = io_safe_input($img);
|
||||
}
|
||||
|
||||
if (strlen($body_preview) >= 170) {
|
||||
$body_preview = substr($body_preview, 0, 150);
|
||||
$body_preview .= __('. Read More...');
|
||||
}
|
||||
|
||||
return sprintf(
|
||||
"<a
|
||||
class='notification-item'
|
||||
|
|
Loading…
Reference in New Issue