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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/widgets/add.php b/actions/widgets/add.php
index 78f73e267..33a818e54 100644
--- a/actions/widgets/add.php
+++ b/actions/widgets/add.php
@@ -15,10 +15,10 @@ $guid = false;
if (!empty($user_guid)) {
$user = get_entity($user_guid);
if ($user && $user->canEdit()) {
- $guid = elgg_add_widget($user->getGUID(), $handler);
+ $guid = elgg_create_widget($user->getGUID(), $handler);
if ($guid) {
$widget = get_entity($guid);
- elgg_prepend_widget($widget, $context, $column);
+ elgg_move_widget($widget, $context, $column, 0);
// send widget html for insertion
echo elgg_view_entity($widget);