combined unexpanded: respect 'SHOW_CONTENT_PREVIEW' preference

This commit is contained in:
Andrew Dolgov 2018-12-04 10:47:50 +03:00
parent 197e80add6
commit 0b8fef8262
1 changed files with 3 additions and 1 deletions

View File

@ -541,7 +541,9 @@ class Feeds extends Handler_Protected {
<img src=\"images/collapse.png\" onclick=\"return Article.cdmUnsetActive(event)\"
title=\"" . __("Collapse article") . "\"/></span>";
$tmp_content .= "<span class='excerpt'>" . $line["content_preview"] . "</span>";
if (get_pref('SHOW_CONTENT_PREVIEW')) {
$tmp_content .= "<span class='excerpt'>" . $line["content_preview"] . "</span>";
}
}
$tmp_content .= "</span>";