Improvement for shortening of the new plaintext option.

This commit is contained in:
Michael Vogel 2014-05-18 18:57:31 +02:00
parent 35fbe3be14
commit 7cc2723e2d
2 changed files with 6 additions and 4 deletions

View file

@ -168,6 +168,8 @@ function plaintext($a, $b, $limit = 0, $includedlinks = false) {
// Is the new message empty by now or is it a reshared message?
elseif (($msg == "") OR (($row == 1) AND (substr($msg, 0, 4) == $recycle)))
$msg = substr(substr(trim($msg."\n".$line), 0, $limit), 0, -3)."...";
else
break;
}
}
}