Skip to content
Permalink
Browse files

Revert changes to use old text shortener

The old text shortener is not compatible with phpBB 3.2.
  • Loading branch information...
marc1706 committed Jan 29, 2017
1 parent af78256 commit 93ea98f744401211ba880522a41cdd2a77f2ef7e
Showing with 4 additions and 3 deletions.
  1. +4 −3 portal/fetch_posts.php
@@ -651,10 +651,11 @@ protected function format_message($row, $text_length, &$posts_striped)
*/
public function shorten_message($message, $bbcode_uid, $length)
{
if (class_exists('\Nickvergessen\TrimMessage\TrimMessage'))
if (class_exists('\Marc1706\TextShortener\Shortener'))
{
$trim = new \Nickvergessen\TrimMessage\TrimMessage($message, $bbcode_uid, $length);
$message = $trim->message();
$trim = new \Marc1706\TextShortener\Shortener();
$message = $trim->setText($message)
->shortenText($length);
unset($trim);
}

0 comments on commit 93ea98f

Please sign in to comment.
You can’t perform that action at this time.