[ticket/471] Do not shorten text if limit is at 0
Also, text will no longer be shortened if the modules is using the compact style. B3P-471
This commit is contained in:
@@ -623,7 +623,7 @@ class fetch_posts
|
||||
*/
|
||||
protected function format_message($row, $text_length, &$posts_striped)
|
||||
{
|
||||
if (($text_length !== 0) && (strlen($row['post_text']) > $text_length))
|
||||
if ($text_length > 0 && (strlen($row['post_text']) > $text_length))
|
||||
{
|
||||
$message = str_replace(array("\n", "\r"), array('<br />', "\n"), $row['post_text']);
|
||||
$message = get_sub_taged_string($message, $row['bbcode_uid'], $text_length);
|
||||
|
||||
Reference in New Issue
Block a user