Changeset 1262 for trunk/bp-groups.php
- Timestamp:
- 03/26/2009 11:20:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r1255 r1262 9 9 Site Wide Only: true 10 10 */ 11 11 12 12 require_once( 'bp-core.php' ); 13 13 … … 23 23 require ( 'bp-groups/bp-groups-templatetags.php' ); 24 24 require ( 'bp-groups/bp-groups-widgets.php' ); 25 require ( 'bp-groups/bp-groups-notifications.php' );26 25 require ( 'bp-groups/bp-groups-filters.php' ); 27 require ( 'bp-groups/bp-groups-admin.php' );28 26 29 27 /************************************************************************** … … 161 159 global $wpdb, $bp; 162 160 163 if ( is_site_admin() ) { 164 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 165 if ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) 166 groups_install(); 167 } 161 if ( !is_site_admin() ) 162 return false; 163 164 require ( 'bp-groups/bp-groups-admin.php' ); 165 166 /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */ 167 if ( get_site_option('bp-groups-db-version') < BP_GROUPS_DB_VERSION ) 168 groups_install(); 168 169 } 169 170 add_action( 'admin_menu', 'groups_check_installed' ); … … 172 173 global $wpdb, $bp; 173 174 174 if ( is_site_admin() ) { 175 /* Add the administration tab under the "Site Admin" tab for site administrators */ 176 add_submenu_page( 'wpmu-admin.php', __("Groups", 'buddypress'), __("Groups", 'buddypress'), 1, "groups_admin_settings", "groups_admin_settings" ); 177 } 175 if ( !is_site_admin() ) 176 return false; 177 178 /* Add the administration tab under the "Site Admin" tab for site administrators */ 179 add_submenu_page( 'wpmu-admin.php', __("Groups", 'buddypress'), __("Groups", 'buddypress'), 1, "groups_admin_settings", "groups_admin_settings" ); 178 180 } 179 181 add_action( 'admin_menu', 'groups_add_admin_menu' ); … … 1740 1742 return false; 1741 1743 } 1744 1745 require_once ( 'bp-groups/bp-groups-notifications.php' ); 1742 1746 1743 1747 // Send friend invites. … … 1901 1905 return false; 1902 1906 1903 if ( $notify_members ) 1907 if ( $notify_members ) { 1908 require_once ( 'bp-groups/bp-groups-notifications.php' ); 1904 1909 groups_notification_group_updated( $group->id ); 1905 1910 } 1911 1906 1912 do_action( 'groups_details_updated', $group->id ); 1907 1913 … … 2025 2031 if ( $requesting_user->save() ) { 2026 2032 $admins = groups_get_group_admins( $group_id ); 2027 2033 2034 require_once ( 'bp-groups/bp-groups-notifications.php' ); 2035 2028 2036 for ( $i = 0; $i < count( $admins ); $i++ ) { 2029 2037 // Saved okay, now send the email notification … … 2058 2066 2059 2067 /* Send a notification to the user. */ 2068 require_once ( 'bp-groups/bp-groups-notifications.php' ); 2060 2069 groups_notification_membership_request_completed( $membership->user_id, $membership->group_id, true ); 2061 2070 … … 2077 2086 2078 2087 // Send a notification to the user. 2088 require_once ( 'bp-groups/bp-groups-notifications.php' ); 2079 2089 groups_notification_membership_request_completed( $membership->user_id, $membership->group_id, false ); 2080 2090
Note: See TracChangeset
for help on using the changeset viewer.