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
a3af358f61
commit
2c6235f9d8
@ -131,7 +131,7 @@ class BlogPost extends Page {
|
|||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
**/
|
**/
|
||||||
public function getExcerpt($wordCount = 30) {
|
public function Excerpt($wordCount = 30) {
|
||||||
return $this->dbObject("Content")->LimitWordCount($wordCount);
|
return $this->dbObject("Content")->LimitWordCount($wordCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user