aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 12:43:51 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 12:43:51 +0000
commitb70654070d83323853f808beccc6780cfcd51ce4 (patch)
tree167e1ba85535a50107d85be5ca51689968026e74 /actions
parent4533dcf9aeead704f346db038c5b692512aab890 (diff)
downloadelgg-b70654070d83323853f808beccc6780cfcd51ce4.tar.gz
elgg-b70654070d83323853f808beccc6780cfcd51ce4.tar.bz2
moved some widget functionality into ElggWidget class
git-svn-id: http://code.elgg.org/elgg/trunk@7348 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/widgets/add.php3
-rw-r--r--actions/widgets/move.php2
2 files changed, 3 insertions, 2 deletions
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);
diff --git a/actions/widgets/move.php b/actions/widgets/move.php
index 2747c149f..276dcb55e 100644
--- a/actions/widgets/move.php
+++ b/actions/widgets/move.php
@@ -14,7 +14,7 @@ $user = get_loggedin_user();
$widget = get_entity($guid);
if ($widget && $user->canEdit()) {
- elgg_move_widget($widget, $widget->context, $column, $position);
+ $widget->move($column, $position);
forward(REFERER);
}