Changeset 4506 for trunk/bp-activity/bp-activity-screens.php
- Timestamp:
- 06/13/2011 09:54:52 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-screens.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-screens.php
r4396 r4506 96 96 $activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action() ) ); 97 97 98 if ( !$activity = $activity['activities'][0] ) 99 bp_core_redirect( bp_get_root_domain() ); 98 // 404 if activity does not exist 99 if ( !$activity = $activity['activities'][0] ) { 100 bp_do_404(); 101 return; 102 } 103 104 if ( !empty( $bp->action_variables ) ) { 105 bp_do_404(); 106 return; 107 } 100 108 101 109 // Default access is true … … 106 114 107 115 // Activity is from a group, but groups is currently disabled 108 if ( !bp_is_active( 'groups') ) 109 bp_core_redirect( bp_get_root_domain() ); 116 if ( !bp_is_active( 'groups') ) { 117 bp_do_404(); 118 return; 119 } 110 120 111 121 // Check to see if the group is not public, if so, check the
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)