mirror of
https://github.com/getgrav/grav.git
synced 2026-07-10 08:03:46 +02:00
Fixed typo in trucate #1943
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
1. [](#bugfix)
|
||||
* Fixed bug in `ContentBlock` serialization
|
||||
* Fixed `Route::withQueryParam()` to accept array values
|
||||
* Fixed typo in truncate function [#1943](https://github.com/getgrav/grav/issues/1943)
|
||||
|
||||
# v1.4.4
|
||||
## 05/11/2018
|
||||
|
||||
@@ -262,7 +262,7 @@ abstract class Utils
|
||||
// is $break present between $limit and the end of the string?
|
||||
if ($up_to_break && false !== ($breakpoint = mb_strpos($string, $break, $limit))) {
|
||||
if ($breakpoint < mb_strlen($string) - 1) {
|
||||
$string = mb_substr($string, 0, $breakpoint) . $break;
|
||||
$string = mb_substr($string, 0, $breakpoint) . $pad;
|
||||
}
|
||||
} else {
|
||||
$string = mb_substr($string, 0, $limit) . $pad;
|
||||
|
||||
Reference in New Issue
Block a user