Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/21/2011 12:03:25 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Move more user functions out of core component and into user component. Fixes to loaders. More code clean-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-loader.php

    r3763 r3778  
    4545
    4646        // Notifications
    47         $bp->blogs->notification_callback = 'bp_blogs_format_notifications';
     47        $this->notification_callback = 'bp_blogs_format_notifications';
    4848
    4949        // Register this in the active components array
    50         $bp->active_components[$this->slug] = $this->id;
     50        $bp->active_components[$this->id] = $this->id;
    5151
    5252        // The default text for the blogs directory search box
    53         $bp->default_search_strings[$this->slug] = __( 'Search Blogs...', 'buddypress' );
     53        $bp->default_search_strings[$this->id] = __( 'Search Blogs...', 'buddypress' );
    5454    }
    5555
     
    8989        bp_core_new_nav_item( array(
    9090            'name'                => sprintf( __( 'Blogs <span>(%d)</span>', 'buddypress' ), bp_blogs_total_blogs_for_user() ),
    91             'slug'                => $bp->blogs->slug,
     91            'slug'                => $this->slug,
    9292            'position'            => 30,
    9393            'screen_function'     => 'bp_blogs_screen_my_blogs',
    9494            'default_subnav_slug' => 'my-blogs',
    95             'item_css_id'         => $bp->blogs->id
     95            'item_css_id'         => $this->id
    9696        ) );
    9797
Note: See TracChangeset for help on using the changeset viewer.