Fix excerpt parsing

This commit is contained in:
David Craig 2015-05-14 12:11:09 +12:00
parent accd76c60b
commit b7b0c99c21
2 changed files with 2 additions and 3 deletions

View File

@ -496,7 +496,7 @@ class BlogPost extends Page {
*/
$content = $this->dbObject('Content');
return $content->LimitWordCount($wordsToDisplay);
return $content->Summary($wordsToDisplay);
}
/**

View File

@ -13,8 +13,7 @@
</p>
<% if $Summary %>
$Summary
<p>
<p>$Summary
<% else %>
<p>$Excerpt
<% end_if %>