properly allow article to be expanded in CDM mode when article excerpt is blank

This commit is contained in:
Andrew Dolgov 2009-09-01 14:30:51 +04:00
parent 786ecb42c0
commit c9efd838a9
1 changed files with 8 additions and 1 deletions

View File

@ -5229,7 +5229,14 @@
print "<div class=\"cdmExcerpt\" id=\"CEXC-$id\" print "<div class=\"cdmExcerpt\" id=\"CEXC-$id\"
onclick=\"cdmExpandArticle($id)\" onclick=\"cdmExpandArticle($id)\"
title=\"".__('Click to expand article')."\">"; title=\"".__('Click to expand article')."\">";
print truncate_string(strip_tags($line["content_preview"]), 100);
$content_preview = trim(truncate_string(strip_tags($line["content_preview"]), 100));
if (strlen($content_preview) != 0) {
print $content_preview;
} else {
print __('Click to expand article');
}
print "</div>"; print "</div>";
} }