summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/feeds.php2
-rw-r--r--include/functions.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 078ff8d6a..8d4c052dc 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -68,7 +68,7 @@ class Feeds extends Handler_Protected {
$target = "target=\"_blank\"";
$reply .= "<a title=\"$last_updated\" $target href=\"$feed_site_url\">".
- truncate_string($feed_title, 20)."</a>";
+ truncate_string($feed_title, 30)."</a>";
if ($error) {
$error = htmlspecialchars($error);
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;