This commit is contained in:
parent
5d10b7589c
commit
4423407f48
|
@ -110,12 +110,12 @@ class BlogEntry extends Page {
|
||||||
*/
|
*/
|
||||||
function ParagraphSummary(){
|
function ParagraphSummary(){
|
||||||
if(self::$allow_wysiwyg_editing) {
|
if(self::$allow_wysiwyg_editing) {
|
||||||
return $this->obj('Content')->FirstParagraph();
|
return $this->obj('Content')->FirstParagraph('html');
|
||||||
} else {
|
} else {
|
||||||
$content = new Text('Content');
|
$parser = new BBCodeParser($this->Content);
|
||||||
$content->value = $this->Content;
|
$html = new HTMLText('Content');
|
||||||
$parser = new BBCodeParser($content->FirstParagraph());
|
$html->setValue($parser->parse());
|
||||||
return $parser->parse();
|
return $html->FirstParagraph('html');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue