aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/actions
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/actions
parent23a912aa6678bb16f866b01c175b8e73e7bf417d (diff)
downloadelgg-c0f3b8d03f260c5ab83289bdf4c7cf6a6c5aa6a6.tar.gz
elgg-c0f3b8d03f260c5ab83289bdf4c7cf6a6c5aa6a6.tar.bz2
Fixes #4179 not setting excerpt if none set
Diffstat (limited to 'mod/blog/actions')
-rw-r--r--mod/blog/actions/blog/save.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php
index 8ca8ce846..8923cd0d2 100644
--- a/mod/blog/actions/blog/save.php
+++ b/mod/blog/actions/blog/save.php
@@ -78,11 +78,8 @@ foreach ($values as $name => $default) {
case 'excerpt':
if ($value) {
- $value = elgg_get_excerpt($value);
- } else {
- $value = elgg_get_excerpt($values['description']);
+ $values[$name] = elgg_get_excerpt($value);
}
- $values[$name] = $value;
break;
case 'container_guid':
@@ -144,7 +141,6 @@ if (!$error) {
system_message(elgg_echo('blog:message:saved'));
$status = $blog->status;
- $db_prefix = elgg_get_config('dbprefix');
// add to river if changing status or published, regardless of new post
// because we remove it for drafts.