From 4423407f48281462221772eb469a4c82505a6ea4 Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Tue, 22 Jan 2008 03:44:44 +0000 Subject: [PATCH] --- code/BlogEntry.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/BlogEntry.php b/code/BlogEntry.php index 29a3199..3ca53ba 100644 --- a/code/BlogEntry.php +++ b/code/BlogEntry.php @@ -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'); } }