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