Changeset 1161
- Timestamp:
- 06/18/07 11:17:57 (1 year ago)
- Files:
-
- devel/mod/community/lib/communities_actions.php (modified) (1 diff)
- devel/mod/community/lib/communities_moderator_of.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/community/lib/communities_actions.php
r1160 r1161 101 101 102 102 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); 106 107 $messages[] = __gettext("The community was deleted."); 107 108 } else { devel/mod/community/lib/communities_moderator_of.php
r1160 r1161 18 18 $friends_menu = run("community:infobox:menu",array($info)); 19 19 if (run("permissions:check",array("userdetails:change", $info->ident))) { 20 $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php? page_owner=".$info->ident."&action=community:delete\">Delete community</a>";20 $friends_menu .= "<a href=\"{$CFG->wwwroot}mod/community/index.php?community_id=".$info->ident."&action=community:delete\">Delete community</a>"; 21 21 } 22 22 $friends_icon = user_icon_html($info->ident,COMMUNITY_ICON_SIZE);
