]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
making sure context is set correctly when adding a widget
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 22 Jan 2011 20:29:01 +0000 (20:29 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 22 Jan 2011 20:29:01 +0000 (20:29 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7900 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/widgets/add.php

index cdb26ef072a3708a3f49781d83a19f45480af747..38686b36db16b8f6f99dd653f4af77244d36e800 100644 (file)
@@ -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()) {