Ticket #2544: 2544-3.patch
File 2544-3.patch, 1.9 KB (added by , 14 years ago) |
---|
-
bp-activity/bp-activity-functions.php
669 669 670 670 // Check to see if the parent activity is hidden, and if so, hide this comment publically. 671 671 $activity = new BP_Activity_Activity( $activity_id ); 672 $is_hidden = ( (int)$activity->hide_sitewide ) ? 1 : 0;672 $is_hidden = ( (int)$activity->hide_sitewide ) ? true : false; 673 673 674 674 // Insert the activity comment 675 675 $comment_id = bp_activity_add( array( -
bp-activity/bp-activity-template.php
288 288 289 289 // are we displaying user specific activity? 290 290 if ( is_numeric( $user_id ) ) { 291 $show_hidden = ( $user_id == $bp->loggedin_user->id && $scope != 'friends' ) ? 1 : 0;291 $show_hidden = ( $user_id == $bp->loggedin_user->id && $scope != 'friends' ) ? true : false; 292 292 293 293 switch ( $scope ) { 294 294 case 'friends': -
bp-activity/bp-activity-classes.php
115 115 $sort = 'DESC'; 116 116 117 117 // Hide Hidden Items? 118 if ( !$show_hidden ) 119 $where_conditions['hidden_sql'] = "a.hide_sitewide = 0"; 118 if ( !is_bool( $show_hidden ) && !empty( $show_hidden ) ) 119 $visibility = $show_hidden; 120 elseif ( !$show_hidden ) 121 $visibility = '0'; 122 else 123 $visibility = '0, 1'; 120 124 125 $where_conditions['hidden_sql'] = "a.hide_sitewide IN ({$visibility})"; 126 121 127 // Exclude specified items 122 128 if ( $exclude ) 123 129 $where_conditions['exclude'] = "a.id NOT IN ({$exclude})";