diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-20 23:18:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-20 23:18:18 +0000 |
commit | 4afa50233029dad99d07a2c3e408bf68bbb4fb4e (patch) | |
tree | 9f740d8f0561a2c3b1b3cc68ba65446c326f6a36 /mod/blog/lib/blog.php | |
parent | 1429e80a1276a9081e4148076e2eac588e55a439 (diff) | |
download | elgg-4afa50233029dad99d07a2c3e408bf68bbb4fb4e.tar.gz elgg-4afa50233029dad99d07a2c3e408bf68bbb4fb4e.tar.bz2 |
fixed blog sticky forms
git-svn-id: http://code.elgg.org/elgg/trunk@8377 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/lib/blog.php')
-rw-r--r-- | mod/blog/lib/blog.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php index 861f75f95..326b224bb 100644 --- a/mod/blog/lib/blog.php +++ b/mod/blog/lib/blog.php @@ -361,6 +361,14 @@ function blog_prepare_form_vars($post = NULL, $revision = NULL) { 'draft_warning' => '', ); + if (elgg_is_sticky_form('blog')) { + foreach (array_keys($values) as $field) { + $values[$field] = elgg_get_sticky_value('blog', $field); + } + } + + elgg_clear_sticky_form('blog'); + if (!$post) { return $values; } @@ -389,8 +397,6 @@ function blog_prepare_form_vars($post = NULL, $revision = NULL) { $values['draft_warning'] = elgg_echo('blog:messages:warning:draft'); } - elgg_clear_sticky_form('blog'); - return $values; } |