diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-19 03:28:41 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-19 03:28:41 +0000 |
commit | 4dc9076224a0d93f0dc078124aa9fb94a669f16c (patch) | |
tree | c4fb116cfab0dab64f92e3183012515322b04b30 /actions/widgets/add.php | |
parent | 28a52ae81a78bff05d864dce226d3b1a9517a8c3 (diff) | |
download | elgg-4dc9076224a0d93f0dc078124aa9fb94a669f16c.tar.gz elgg-4dc9076224a0d93f0dc078124aa9fb94a669f16c.tar.bz2 |
saving widget position after moving
git-svn-id: http://code.elgg.org/elgg/trunk@7343 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets/add.php')
-rw-r--r-- | actions/widgets/add.php | 4 |
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); |