Skip to content

Commit

Permalink
Change default truncate ellipsis ... to typo char … (#5308)
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis committed Aug 13, 2022
1 parent cfddaa4 commit 1a0dd0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redaxo/src/core/lib/util/formatter.php
Expand Up @@ -328,7 +328,7 @@ public static function nl2br($value)
* Truncates a string.
*
* @param string $value Value
* @param array{length?: int, etc?: string, break_words?: bool} $format Default format is `['length' => 80, 'etc' => '...', 'break_words' => false]`
* @param array{length?: int, etc?: string, break_words?: bool} $format Default format is `['length' => 80, 'etc' => '', 'break_words' => false]`
*
* @return string
*/
Expand All @@ -345,7 +345,7 @@ public static function truncate($value, $format = [])

// ETC
if (empty($format['etc'])) {
$format['etc'] = '...';
$format['etc'] = '';
}

// Break-Words?
Expand Down

0 comments on commit 1a0dd0e

Please sign in to comment.