mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #238 from flashbackzoo/pulls/excerpt-encoding
Fix excerpt parsing
This commit is contained in:
commit
a7bf039f8a
@ -496,7 +496,7 @@ class BlogPost extends Page {
|
||||
*/
|
||||
$content = $this->dbObject('Content');
|
||||
|
||||
return $content->LimitWordCount($wordsToDisplay);
|
||||
return $content->Summary($wordsToDisplay);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,8 +13,7 @@
|
||||
</p>
|
||||
|
||||
<% if $Summary %>
|
||||
$Summary
|
||||
<p>
|
||||
<p>$Summary
|
||||
<% else %>
|
||||
<p>$Excerpt
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user