mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 00:01:29 +00:00
revert max ui feed title length, tweak truncate_string a bit
This commit is contained in:
@@ -879,7 +879,7 @@
|
||||
}
|
||||
|
||||
function truncate_string($str, $max_len, $suffix = '…') {
|
||||
if (mb_strlen($str, "utf-8") > $max_len - 3) {
|
||||
if (mb_strlen($str, "utf-8") > $max_len) {
|
||||
return mb_substr($str, 0, $max_len, "utf-8") . $suffix;
|
||||
} else {
|
||||
return $str;
|
||||
|
||||
Reference in New Issue
Block a user