aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/add.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:29:01 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:29:01 +0000
commit915eaaa253336c5081c37e14ca9bf1ceed408647 (patch)
tree6cd3c59a22b9c334befa94c0e987cdb089b76d3e /actions/widgets/add.php
parentf963d6083dac495100982842fd4f07d95db2cffc (diff)
downloadelgg-915eaaa253336c5081c37e14ca9bf1ceed408647.tar.gz
elgg-915eaaa253336c5081c37e14ca9bf1ceed408647.tar.bz2
making sure context is set correctly when adding a widget
git-svn-id: http://code.elgg.org/elgg/trunk@7900 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets/add.php')
-rw-r--r--actions/widgets/add.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/widgets/add.php b/actions/widgets/add.php
index cdb26ef07..38686b36d 100644
--- a/actions/widgets/add.php
+++ b/actions/widgets/add.php
@@ -11,6 +11,9 @@ $handler = get_input('handler');
$context = get_input('context');
$column = get_input('column', 1);
+elgg_push_context($context);
+elgg_push_context('widgets');
+
if (!empty($user_guid)) {
$user = get_entity($user_guid);
if ($user && $user->canEdit()) {