Changeset 1160
- Timestamp:
- 06/18/07 11:10:44 (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
r1087 r1160 103 103 if (run("permissions:check",array("userdetails:change", $page_owner))) { 104 104 if (user_delete($page_owner)) { 105 plugin_hook("community","publish",$page_owner);105 // plugin_hook("community","publish",$page_owner); 106 106 $messages[] = __gettext("The community was deleted."); 107 107 } else { devel/mod/community/lib/communities_moderator_of.php
r1095 r1160 17 17 $info->icon = run("icons:get",$info->ident); 18 18 $friends_menu = run("community:infobox:menu",array($info)); 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>"; 21 } 19 22 $friends_icon = user_icon_html($info->ident,COMMUNITY_ICON_SIZE); 20 23 $link = $CFG->wwwroot.$info->username."/";
