Changeset 1161

Show
Ignore:
Timestamp:
06/18/07 11:17:57 (1 year ago)
Author:
ben
Message:

Fix for previous.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib/communities_actions.php

    r1160 r1161  
    101101     
    102102        case "community:delete": 
    103             if (run("permissions:check",array("userdetails:change", $page_owner))) { 
    104                 if (user_delete($page_owner)) { 
    105                     // plugin_hook("community","publish",$page_owner); 
     103            $community_id = optional_param('community_id',0,PARAM_INT); 
     104            if (run("permissions:check",array("userdetails:change", $community_id))) { 
     105                if (user_delete($community_id)) { 
     106                    // plugin_hook("community","publish",$community_id); 
    106107                    $messages[] = __gettext("The community was deleted."); 
    107108                } else { 
  • devel/mod/community/lib/communities_moderator_of.php

    r1160 r1161  
    1818            $friends_menu = run("community:infobox:menu",array($info)); 
    1919            if (run("permissions:check",array("userdetails:change", $info->ident))) { 
    20                 $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php?page_owner=".$info->ident."&amp;action=community:delete\">Delete community</a>"; 
     20                $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php?community_id=".$info->ident."&amp;action=community:delete\">Delete community</a>"; 
    2121            } 
    2222            $friends_icon = user_icon_html($info->ident,COMMUNITY_ICON_SIZE);