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:
@@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user