diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-25 10:07:15 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-25 10:07:15 +0000 |
commit | 8d79fd97ea205964e1a1409b3878e831c7617742 (patch) | |
tree | d8b38b6cc6edc5da897682ec3a361e53cba5e6e7 /engine/lib/widgets.php | |
parent | 3ddfa80f7fd01f12f87814f97c3da84582ead350 (diff) | |
download | elgg-8d79fd97ea205964e1a1409b3878e831c7617742.tar.gz elgg-8d79fd97ea205964e1a1409b3878e831c7617742.tar.bz2 |
Closes #326: add_widget uses the specified $user_guid as $widget->owner_guid
git-svn-id: https://code.elgg.org/elgg/trunk@2129 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/widgets.php')
-rw-r--r-- | engine/lib/widgets.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index faaa1dfb2..1186a8b55 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -178,7 +178,8 @@ $widget->handler = $handler;
$widget->context = $context;
$widget->column = $column;
- $widget->order = $order;
+ $widget->order = $order; + $widget->owner_guid = $user_guid;
$widget->access_id = 1;
if (!$widget->save())
return false;
|