<?php
if(my_strlen($lastpost_subject) > 25)
{
$lastpost_subject = my_substr($lastpost_subject, 0, 25)."...";
}
$lastpost_subject = htmlspecialchars_uni($lastpost_subject);
$full_lastpost_subject = htmlspecialchars_uni($full_lastpost_subject);
<?php
/***Insert the thread prefix if there is one***/
$thread = get_thread($forum['lastposttid']);
$thread['threadprefix'] = '';
$thread['displayprefix'] = '';
if($thread['prefix'] > 0)
{
$prefix = build_prefixes($thread['prefix']);
if($prefix['prefix'])
{
$thread['threadprefix'] = $prefix['prefix'].' ';
$thread['displayprefix'] = $prefix['displaystyle'].' ';
}
}
if(my_strlen($thread['threadprefix'].$lastpost_subject) > 25)
{
$lastpost_subject = my_substr($lastpost_subject, 0, 25-intval(my_strlen($thread['threadprefix'])))."...";
}
$lastpost_subject = $thread['displayprefix'].htmlspecialchars_uni($lastpost_subject);
$full_lastpost_subject = htmlspecialchars_uni($thread['threadprefix'].$full_lastpost_subject);
/***Insert the thread prefix if there is one***/