aboutsummaryrefslogtreecommitdiff
path: root/views/default/blog/composer.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/blog/composer.php')
-rw-r--r--views/default/blog/composer.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/default/blog/composer.php b/views/default/blog/composer.php
new file mode 100644
index 000000000..135e70015
--- /dev/null
+++ b/views/default/blog/composer.php
@@ -0,0 +1,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)); \ No newline at end of file