mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
#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);
|
$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(
|
return sprintf(
|
||||||
"<a
|
"<a
|
||||||
class='notification-item'
|
class='notification-item'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user