Skip to:
Content

BuddyPress.org

Ticket #4242: 4242-1.patch

File 4242-1.patch, 639 bytes (added by DJPaul, 14 years ago)
  • bp-core/bp-core-template.php

    function bp_get_name_from_root_slug( $root_slug = '' ) { 
    716716
    717717        // Loop through active components and look for a match
    718718        foreach ( $bp->active_components as $component => $id ) {
    719                 if ( !empty( $bp->{$component}->root_slug ) && ( $bp->{$component}->root_slug == $root_slug ) ) {
     719                if ( !empty( $bp->{$component}->root_slug ) && ( $bp->{$component}->slug == $root_slug ) ) {
    720720                        return $bp->{$component}->name;
    721721                }
    722722        }