Changeset 4548 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 06/21/2011 07:22:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r4515 r4548 717 717 } 718 718 719 function bp_activity_user_can_delete( ) {719 function bp_activity_user_can_delete( $activity = false ) { 720 720 global $activities_template, $bp; 721 722 if ( !$activity ) 723 $activity = $activities_template->activity; 721 724 722 725 $can_delete = false; … … 725 728 $can_delete = true; 726 729 727 if ( $activit ies_template->activity->user_id == $bp->loggedin_user->id )730 if ( $activity->user_id == $bp->loggedin_user->id ) 728 731 $can_delete = true; 729 732
Note: See TracChangeset
for help on using the changeset viewer.