aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default/river/object
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-05-02 20:10:56 -0400
committercash <cash.costello@gmail.com>2013-05-02 20:10:56 -0400
commit9864f0eeae607f77651c4ec09a344c8f72b6acdf (patch)
treed475969ad1685028410337cdb3980c6a91108fa3 /mod/blog/views/default/river/object
parent459e8d04b88b8bf7914105b1723624d23a5b3669 (diff)
downloadelgg-9864f0eeae607f77651c4ec09a344c8f72b6acdf.tar.gz
elgg-9864f0eeae607f77651c4ec09a344c8f72b6acdf.tar.bz2
Fixes #5401 using description if excerpt is not set
Diffstat (limited to 'mod/blog/views/default/river/object')
-rw-r--r--mod/blog/views/default/river/object/blog/create.php6
1 files changed, 4 insertions, 2 deletions
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
+));