aboutsummaryrefslogtreecommitdiff
path: root/views/default/blog/composer.php
blob: 135e700153fb4a5f7de3458f458d6d35ea997605 (plain)
1
2
3
4
5
6
7
8
9
10
<?php
elgg_load_library('elgg:blog');
$body_vars = blog_prepare_form_vars();

//hack! Elgg engine should take care of this, or blog/save form should be coded better
if (elgg_is_xhr() && isset($vars['container_guid'])) {
	elgg_set_page_owner_guid($vars['container_guid']);
}

echo elgg_view_form('blog/save', array(), array_merge($body_vars, $vars));