summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-02-02 23:17:13 +0400
committerAndrew Dolgov <[email protected]>2014-02-02 23:17:13 +0400
commit878a0083ffc74c7753eec3a1d570af136a80529d (patch)
treecbfcb54144ea358671b4b8c9c0951d768e0363a1 /include
parent66684d814985a8cd32bcee06962bbda37c6014cb (diff)
revert max ui feed title length, tweak truncate_string a bit
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index f8c614ac7..821ca83f0 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -879,7 +879,7 @@
}
function truncate_string($str, $max_len, $suffix = '&hellip;') {
- 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;