diff options
-rw-r--r-- | actions/widgets/add.php | 2 | ||||
-rw-r--r-- | engine/classes/ElggWidget.php | 2 | ||||
-rw-r--r-- | js/lib/ui.widgets.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/actions/widgets/add.php b/actions/widgets/add.php index 001c139d8..6c2859c21 100644 --- a/actions/widgets/add.php +++ b/actions/widgets/add.php @@ -6,7 +6,7 @@ * @subpackage Widgets.Management */ -$user_guid = get_input('user'); +$user_guid = get_input('user_guid'); $handler = get_input('handler'); $context = get_input('context'); $column = get_input('column', 1); diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php index 2b6e977fe..e1c975777 100644 --- a/engine/classes/ElggWidget.php +++ b/engine/classes/ElggWidget.php @@ -109,7 +109,7 @@ class ElggWidget extends ElggObject { * @return void * @since 1.8.0 */ - public function move($column, $position) { + public function move($column, $rank) { $options = array( 'type' => 'object', 'subtype' => 'widget', diff --git a/js/lib/ui.widgets.js b/js/lib/ui.widgets.js index ac55d0e7f..ebece5a59 100644 --- a/js/lib/ui.widgets.js +++ b/js/lib/ui.widgets.js @@ -37,7 +37,7 @@ elgg.ui.widgets.init = function() { elgg.action('widgets/add', {
data: {
handler: $(this).attr('id'),
- user: elgg.get_loggedin_userid(),
+ user_guid: elgg.get_loggedin_userid(),
context: $("input[name='widget_context']").val()
},
success: function(json) {
|