Changeset 6951
- Timestamp:
- 04/26/2013 06:50:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r6950 r6951 656 656 return apply_filters( 'bp_get_group_date_created', bp_core_time_since( strtotime( $group->date_created ) ) ); 657 657 } 658 658 659 659 function bp_group_creator_username( $group = false ) { 660 660 echo bp_get_group_creator_username( $group ); … … 662 662 function bp_get_group_creator_username( $group = false ) { 663 663 global $groups_template; 664 665 if ( empty( $group ) ) 666 $group =& $groups_template->group; 667 664 665 if ( empty( $group ) ) 666 $group =& $groups_template->group; 667 668 668 return apply_filters( 'bp_get_group_creator_username', bp_core_get_user_displayname( $group->creator_id ) ); 669 } 669 } 670 670 671 671 function bp_group_creator_id( $group = false ) { … … 674 674 function bp_get_group_creator_id( $group = false ) { 675 675 global $groups_template; 676 677 if ( empty( $group ) ) 678 $group =& $groups_template->group; 679 676 677 if ( empty( $group ) ) 678 $group =& $groups_template->group; 679 680 680 return apply_filters( 'bp_get_group_creator_id', $group->creator_id ); 681 } 681 } 682 682 683 683 function bp_group_creator_permalink( $group = false ) { … … 691 691 692 692 return apply_filters( 'bp_get_group_creator_permalink', bp_core_get_user_domain( $group->creator_id ) ); 693 } 693 } 694 694 695 695 function bp_is_group_creator( $group = false, $user_id = 0 ) { 696 696 global $groups_template; 697 697 698 698 if ( empty( $group ) ) 699 699 $group =& $groups_template->group; 700 700 701 701 if ( empty( $user_id ) ) 702 702 $user_id = bp_loggedin_user_id(); … … 731 731 } 732 732 733 733 734 734 function bp_group_is_admin() { 735 735 return bp_is_item_admin();
Note: See TracChangeset
for help on using the changeset viewer.