]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
featuring and unfeaturing groups now works
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 7 Jun 2010 13:17:28 +0000 (13:17 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 7 Jun 2010 13:17:28 +0000 (13:17 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6377 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/actions/featured.php
mod/groups/languages/en.php
mod/groups/views/default/groups/grouplisting.php

index 2d16113df24ee7c0d2b4e88959d700f8ce0955aa..c6fc9f39711c0fde6c2cf643cb46eb5a7b547bca 100644 (file)
@@ -16,7 +16,7 @@
        admin_gatekeeper();
        
        $group_guid = get_input('group_guid');
-       $action = get_input('action');
+       $action = get_input('type');
        
        $group = get_entity($group_guid);
        
@@ -39,6 +39,4 @@
                
        }
        
-       forward("pg/groups/world/");
-       
-?>
\ No newline at end of file
+       forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file
index 91928d862cc701cf7f42fbf29f020ae1db17d7e6..def502afd60246aa2bd013327ad526ec0ce2d45b 100644 (file)
@@ -47,7 +47,7 @@
                        'groups:makeunfeatured' => 'Unfeature',
                        'groups:makefeatured' => 'Make featured',
                        'groups:featuredon' => 'You have made this group a featured one.',
-                       'groups:unfeature' => 'You have removed this group from the featured list',
+                       'groups:unfeatured' => 'You have removed this group from the featured list',
                        'groups:joinrequest' => 'Request membership',
                        'groups:join' => 'Join group',
                        'groups:leave' => 'Leave group',
index 2b6887736f10e37e9805847e5daadf2d33f79c1c..83350889c08cac38c2c570fc2ea25977c6bdea3a 100644 (file)
@@ -30,10 +30,10 @@ $info .= "<p class='entity_subtext groups'>" . $mem . " / <b>" . get_group_membe
 //for admins only - display the feature or unfeature option
 if(isadminloggedin()) {
        if($vars['entity']->featured_group == "yes"){
-               $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action=unfeature");
+               $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&type=unfeature");
                $wording = elgg_echo("groups:makeunfeatured");
        }else{
-               $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&action=feature");
+               $url = elgg_add_action_tokens_to_url($vars['url'] . "action/groups/featured?group_guid=" . $vars['entity']->guid . "&type=feature");
                $wording = elgg_echo("groups:makefeatured");
        }
        // display 'make featured' option