From 915eaaa253336c5081c37e14ca9bf1ceed408647 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 22 Jan 2011 20:29:01 +0000 Subject: 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 --- actions/widgets/add.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actions/widgets/add.php') 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()) { -- cgit v1.2.3