Changeset 4519 for trunk/bp-activity/bp-activity-screens.php
- Timestamp:
- 06/15/2011 09:00:32 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-screens.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-screens.php
r4506 r4519 94 94 95 95 // Get the activity details 96 $activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action() ) );96 $activity = bp_activity_get_specific( array( 'activity_ids' => bp_current_action(), 'show_hidden' => true ) ); 97 97 98 98 // 404 if activity does not exist 99 if ( !$activity = $activity['activities'][0]) {99 if ( empty( $activity['activities'][0] ) || !empty( $bp->action_variables ) ) { 100 100 bp_do_404(); 101 101 return; 102 } 103 104 if ( !empty( $bp->action_variables ) ) { 105 bp_do_404(); 106 return; 102 103 } else { 104 $activity = $activity['activities'][0]; 105 if ( empty( $activity ) ) { 106 bp_do_404(); 107 return; 108 } 107 109 } 108 110
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)