From b70654070d83323853f808beccc6780cfcd51ce4 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 19 Nov 2010 12:43:51 +0000 Subject: moved some widget functionality into ElggWidget class git-svn-id: http://code.elgg.org/elgg/trunk@7348 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/widgets/add.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/widgets/add.php') diff --git a/actions/widgets/add.php b/actions/widgets/add.php index 33a818e54..eebbd1438 100644 --- a/actions/widgets/add.php +++ b/actions/widgets/add.php @@ -18,7 +18,8 @@ if (!empty($user_guid)) { $guid = elgg_create_widget($user->getGUID(), $handler); if ($guid) { $widget = get_entity($guid); - elgg_move_widget($widget, $context, $column, 0); + $widget->setContext($context); + $widget->move($column, 0); // send widget html for insertion echo elgg_view_entity($widget); -- cgit v1.2.3