diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 02:12:32 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 02:12:32 +0000 |
commit | 373ff03a2b6315eea13a97065774972ad3713ab6 (patch) | |
tree | df051d2a4c1d150fd75b2f3db2d4647a5e1ebda9 /actions/widgets/move.php | |
parent | 06f0e7b1aa5f6fd393d9a0b580f94709e29e10df (diff) | |
download | elgg-373ff03a2b6315eea13a97065774972ad3713ab6.tar.gz elgg-373ff03a2b6315eea13a97065774972ad3713ab6.tar.bz2 |
Fixes #2753: Default widgets merged into core as extensible admin section and updated to work with new widgets. Will need an upgrade for users running the old default widgets in 1.7.
git-svn-id: http://code.elgg.org/elgg/trunk@8302 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets/move.php')
-rw-r--r-- | actions/widgets/move.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/actions/widgets/move.php b/actions/widgets/move.php index 2edc7912e..eab650c9c 100644 --- a/actions/widgets/move.php +++ b/actions/widgets/move.php @@ -6,14 +6,16 @@ * @subpackage Widgets.Management */ -$guid = get_input('guid'); +$widget_guid = get_input('widget_guid'); $column = get_input('column', 1); $position = get_input('position'); +$owner_guid = get_input('owner_guid', elgg_get_logged_in_user_guid()); -$user = elgg_get_logged_in_user_entity(); +$widget = get_entity($widget_guid); +$owner = get_entity($owner_guid); -$widget = get_entity($guid); -if ($widget && $user->canEdit()) { + +if ($widget && $owner->canEdit()) { $widget->move($column, $position); forward(REFERER); } |