get rid of almost never used HTMLPurifier library and beautify subject display on ticket-overview

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-01-25 08:34:03 +01:00
parent 5a7462972f
commit 16dde03f96
363 changed files with 10 additions and 26438 deletions

View File

@@ -158,8 +158,10 @@ if ($page == 'tickets'
}
$row['subject'] = html_entity_decode($row['subject']);
if (strlen($row['subject']) > 20) {
$row['subject'] = substr($row['subject'], 0, 17) . '...';
if (strlen($row['subject']) > 30) {
$ts = wordwrap($row['subject'], 30, "|");
$ts = explode("|", $ts);
$row['subject'] = $ts[0]. '...';
}
eval("\$tickets.=\"" . getTemplate("tickets/tickets_tickets") . "\";");