aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 13:33:56 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 13:33:56 +0000
commit67ee3bc241e70aaffd451452e9761ed512dc52aa (patch)
tree36c89e9dcc779fc2aa28ec5a8d81df80a6136790 /mod/blog
parente1a7a3190287920c96cb076803bfee1680b5dcdd (diff)
downloadelgg-67ee3bc241e70aaffd451452e9761ed512dc52aa.tar.gz
elgg-67ee3bc241e70aaffd451452e9761ed512dc52aa.tar.bz2
blog object wasn't being passed to the form view
git-svn-id: http://code.elgg.org/elgg/trunk@8153 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/lib/blog.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index 062a8a0eb..fdd408feb 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -373,6 +373,8 @@ function blog_prepare_form_vars($post = NULL, $revision = NULL) {
$values[$field] = $post->$field;
}
+ $values['entity'] = $post;
+
// load the revision annotation if requested
if ($revision instanceof ElggAnnotation && $revision->entity_guid == $post->getGUID()) {
$values['revision'] = $revision;