Changeset 4088 for trunk/bp-activity/bp-activity-screens.php
- Timestamp:
- 03/08/2011 06:35:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-screens.php
r3982 r4088 1 1 <?php 2 3 /*******************************************************************************4 * Screen Functions5 *6 * Screen functions are the controllers of BuddyPress. They will execute when7 * their specific URL is caught. They will first save or manipulate data using8 * business functions, then pass on the user to a template file.9 */10 2 11 3 /** … … 15 7 */ 16 8 function bp_activity_screen_index() { 17 global $bp; 18 19 if ( !bp_displayed_user_id() && bp_is_current_component( 'activity' ) && !bp_current_action() ) { 20 $bp->is_directory = true; 9 if ( !bp_displayed_user_id() && bp_is_activity_component() && !bp_current_action() ) { 10 bp_update_is_directory( true, 'activity' ); 21 11 22 12 do_action( 'bp_activity_screen_index' ); … … 33 23 34 24 function bp_activity_screen_friends() { 35 global $bp;36 37 25 if ( !bp_is_active( 'friends' ) ) 38 26 return false; 39 27 40 if ( !is_super_admin() ) 41 $bp->is_item_admin = false; 42 28 bp_update_is_item_admin( is_super_admin(), 'activity' ); 43 29 do_action( 'bp_activity_screen_friends' ); 44 30 bp_core_load_template( apply_filters( 'bp_activity_template_friends_activity', 'members/single/home' ) ); … … 46 32 47 33 function bp_activity_screen_groups() { 48 global $bp;49 50 34 if ( !bp_is_active( 'groups' ) ) 51 35 return false; 52 36 53 if ( !is_super_admin() ) 54 $bp->is_item_admin = false; 55 37 bp_update_is_item_admin( is_super_admin(), 'activity' ); 56 38 do_action( 'bp_activity_screen_groups' ); 57 39 bp_core_load_template( apply_filters( 'bp_activity_template_groups_activity', 'members/single/home' ) ); … … 59 41 60 42 function bp_activity_screen_favorites() { 61 global $bp; 62 63 if ( !is_super_admin() ) 64 $bp->is_item_admin = false; 65 43 bp_update_is_item_admin( is_super_admin(), 'activity' ); 66 44 do_action( 'bp_activity_screen_favorites' ); 67 45 bp_core_load_template( apply_filters( 'bp_activity_template_favorite_activity', 'members/single/home' ) ); … … 69 47 70 48 function bp_activity_screen_mentions() { 71 global $bp; 72 73 if ( !is_super_admin() ) 74 $bp->is_item_admin = false; 75 49 bp_update_is_item_admin( is_super_admin(), 'activity' ); 76 50 do_action( 'bp_activity_screen_mentions' ); 77 51 bp_core_load_template( apply_filters( 'bp_activity_template_mention_activity', 'members/single/home' ) );
Note: See TracChangeset
for help on using the changeset viewer.