This commit is contained in:
Matt Peel 2008-01-22 03:44:44 +00:00
parent 5d10b7589c
commit 4423407f48
1 changed files with 5 additions and 5 deletions

View File

@ -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');
} }
} }