aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r--actions/widgets/save.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php
index 8854d7810..a78f4ca75 100644
--- a/actions/widgets/save.php
+++ b/actions/widgets/save.php
@@ -11,7 +11,8 @@ $params = get_input('params');
$widget = get_entity($guid);
if ($widget && $widget->saveSettings($params)) {
- $view = "widgets/$widget->handler/view";
+ elgg_set_page_owner_guid($widget->getContainerGUID());
+ $view = "widgets/$widget->handler/content";
echo elgg_view($view, array('entity' => $widget));
} else {
register_error(elgg_echo('widgets:save:failure'));