mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Altered getExcerpt to Excerpt so that params are passed where previously lost in magic methods
This commit is contained in:
parent
f9eb2a76f1
commit
4a3361ddd8
@ -135,7 +135,7 @@ class BlogPost extends Page {
|
||||
*
|
||||
* @return string
|
||||
**/
|
||||
public function getExcerpt($wordCount = 30) {
|
||||
public function Excerpt($wordCount = 30) {
|
||||
return $this->dbObject("Content")->LimitWordCount($wordCount);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user