From eab568065fda670d81f2cfdbf1efc86cd6f90ad0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 16 Mar 2019 15:35:11 +0300 Subject: [PATCH] enable excerpt for text digest --- classes/digest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/digest.php b/classes/digest.php index 68a14ef68..68859d67c 100644 --- a/classes/digest.php +++ b/classes/digest.php @@ -192,8 +192,8 @@ class Digest $tpl_t->setVariable('ARTICLE_LINK', $line["link"]); $tpl_t->setVariable('ARTICLE_UPDATED', $updated); $tpl_t->setVariable('ARTICLE_LABELS', $article_labels_formatted, true); -// $tpl_t->setVariable('ARTICLE_EXCERPT', -// truncate_string(strip_tags($line["excerpt"]), 100)); + $tpl_t->setVariable('ARTICLE_EXCERPT', + truncate_string(strip_tags($line["excerpt"]), 300), true); $tpl_t->addBlock('article');