aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) {