Merge pull request #238 from flashbackzoo/pulls/excerpt-encoding

Fix excerpt parsing
This commit is contained in:
Damian Mooyman 2015-05-14 12:24:31 +12:00
commit a7bf039f8a
2 changed files with 2 additions and 3 deletions

View File

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

View File

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