aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-23 15:20:57 -0500
committercash <cash.costello@gmail.com>2011-12-23 15:20:57 -0500
commitc0f3b8d03f260c5ab83289bdf4c7cf6a6c5aa6a6 (patch)
treed408643823a0a1372765c7ff79ff69061248a1bb /mod/blog/views
parent23a912aa6678bb16f866b01c175b8e73e7bf417d (diff)
downloadelgg-c0f3b8d03f260c5ab83289bdf4c7cf6a6c5aa6a6.tar.gz
elgg-c0f3b8d03f260c5ab83289bdf4c7cf6a6c5aa6a6.tar.bz2
Fixes #4179 not setting excerpt if none set
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/object/blog.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index 3525b3d48..aa8074a69 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -16,6 +16,9 @@ $owner = $blog->getOwnerEntity();
$container = $blog->getContainerEntity();
$categories = elgg_view('output/categories', $vars);
$excerpt = $blog->excerpt;
+if (!$excerpt) {
+ $excerpt = elgg_get_excerpt($blog->description);
+}
$owner_icon = elgg_view_entity_icon($owner, 'tiny');
$owner_link = elgg_view('output/url', array(