Skip to content

Commit

Permalink
Strink bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SindlaXYZ committed Jan 8, 2021
1 parent 544243b commit 9689e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Strink/Strink.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function limitedString(int $limit = 10, string $postText = '...', string
} else if ($cut == 'middle' || $cut == 'center') {
$this->string = mb_substr($this->string, 0, (round($limit / 2) - count($postText)), 'utf-8');
$this->string .= $postText;
$this->string .= mb_substr($this->string, count($this->string) - round($limit / 2), strlen($this->string), 'utf-8');
$this->string .= mb_substr($this->string, strlen($this->string) - round($limit / 2), strlen($this->string), 'utf-8');
}
}

Expand Down

0 comments on commit 9689e08

Please sign in to comment.