aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/widgets/add.php')
-rw-r--r--actions/widgets/add.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/actions/widgets/add.php b/actions/widgets/add.php
index 6c2859c21..cdb26ef07 100644
--- a/actions/widgets/add.php
+++ b/actions/widgets/add.php
@@ -14,10 +14,11 @@ $column = get_input('column', 1);
if (!empty($user_guid)) {
$user = get_entity($user_guid);
if ($user && $user->canEdit()) {
- $guid = elgg_create_widget($user->getGUID(), $handler);
+ $guid = elgg_create_widget($user->getGUID(), $handler, $context);
if ($guid) {
$widget = get_entity($guid);
- $widget->setContext($context);
+
+ // position the widget
$widget->move($column, 0);
// send widget html for insertion