From 07727717f2341edc80ba9dc47e78649d1133b29b Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 24 May 2010 20:02:23 +0000 Subject: Blog uses elgg_make_excerpt() now instead of its own. git-svn-id: http://code.elgg.org/elgg/trunk@6190 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/actions/blog/auto_save_revision.php | 2 +- mod/blog/actions/blog/save.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/blog/actions') diff --git a/mod/blog/actions/blog/auto_save_revision.php b/mod/blog/actions/blog/auto_save_revision.php index 520d57531..ce35c1295 100644 --- a/mod/blog/actions/blog/auto_save_revision.php +++ b/mod/blog/actions/blog/auto_save_revision.php @@ -41,7 +41,7 @@ if ($title && $description) { $blog->access_id = ACCESS_PRIVATE; $blog->title = $title; $blog->description = $description; - $blog->excerpt = blog_make_excerpt($excerpt); + $blog->excerpt = elgg_make_excerpt($excerpt); // must be present or doesn't show up when metadata sorting. $blog->publish_date = time(); if (!$blog->save()) { diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 0e8a696b9..138c32bda 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -78,9 +78,9 @@ foreach ($values as $name => $default) { case 'excerpt': if ($value) { - $value = blog_make_excerpt($value); + $value = elgg_make_excerpt($value); } else { - $value = blog_make_excerpt($values['description']); + $value = elgg_make_excerpt($values['description']); } $values[$name] = $value; break; -- cgit v1.2.3