1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

feed editor improvements

This commit is contained in:
Andrew Dolgov
2005-11-24 08:25:09 +01:00
parent c5d8841e91
commit 3547842a4f
2 changed files with 19 additions and 8 deletions
+8
View File
@@ -701,4 +701,12 @@
initialize_user_prefs($link, 1);
}
}
function truncate_string($str, $max_len) {
if (strlen($str) > $max_len) {
return substr($str, 0, $max_len) . "...";
} else {
return $str;
}
}
?>