From: cash Date: Sat, 22 Jan 2011 20:29:01 +0000 (+0000) Subject: making sure context is set correctly when adding a widget X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=915eaaa253336c5081c37e14ca9bf1ceed408647;p=lorea%2Felgg.git 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 --- 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()) {