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(){
if(self::$allow_wysiwyg_editing) {
return $this->obj('Content')->FirstParagraph();
return $this->obj('Content')->FirstParagraph('html');
} else {
$content = new Text('Content');
$content->value = $this->Content;
$parser = new BBCodeParser($content->FirstParagraph());
return $parser->parse();
$parser = new BBCodeParser($this->Content);
$html = new HTMLText('Content');
$html->setValue($parser->parse());
return $html->FirstParagraph('html');
}
}