From 9864f0eeae607f77651c4ec09a344c8f72b6acdf Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 2 May 2013 20:10:56 -0400 Subject: Fixes #5401 using description if excerpt is not set --- mod/blog/views/default/river/object/blog/create.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/blog/views') diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php index a054c1061..b808f1bdc 100644 --- a/mod/blog/views/default/river/object/blog/create.php +++ b/mod/blog/views/default/river/object/blog/create.php @@ -4,10 +4,12 @@ */ $object = $vars['item']->getObjectEntity(); -$excerpt = strip_tags($object->excerpt); + +$excerpt = $object->excerpt ? $object->excerpt : $object->description; +$excerpt = strip_tags($excerpt); $excerpt = elgg_get_excerpt($excerpt); echo elgg_view('river/elements/layout', array( 'item' => $vars['item'], 'message' => $excerpt, -)); \ No newline at end of file +)); -- cgit v1.2.3