Ticket #4335: 4335.01.patch
File 4335.01.patch, 754 bytes (added by , 13 years ago) |
---|
-
bp-themes/bp-default/functions.php
function bp_dtheme_activity_secondary_avatars( $action, $activity ) { 545 545 case 'groups' : 546 546 case 'friends' : 547 547 // Only insert avatar if one exists 548 if ( $secondary_avatar = bp_get_activity_secondary_avatar() ) {548 if ( bp_is_active( $activity->component ) && $secondary_avatar = bp_get_activity_secondary_avatar() ) { 549 549 $reverse_content = strrev( $action ); 550 550 $position = strpos( $reverse_content, 'a<' ); 551 551 $action = substr_replace( $action, $secondary_avatar, -$position - 2, 0 );