Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2011 09:47:08 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix typo $GLOBALS in loader. Setup current_user and displayed users as stdClass in BuddyPress::setup_globals. Remove displayed_user empty assignment from bp_core_catch_uris. Change user spam message class from 'error' to 'warning'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r5305 r5314  
    3434
    3535    // Create global component, action, and item variables
    36     $bp->current_component = $bp->current_action = $bp->current_item ='';
    37     $bp->action_variables = $bp->displayed_user->id = '';
     36    $bp->current_component = $bp->current_item     = '';
     37    $bp->current_action    = $bp->action_variables = '';
    3838
    3939    // Don't catch URIs on non-root blogs unless multiblog mode is on
     
    257257                if ( bp_displayed_user_id() && bp_is_user_spammer( bp_displayed_user_id() ) ) {
    258258                    if ( is_super_admin() ) {
    259                         bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'error' );
     259                        bp_core_add_message( __( 'This user has been marked as a spammer. Only site admins can view this profile.', 'buddypress' ), 'warning' );
    260260                    } else {
    261261                        bp_do_404();
Note: See TracChangeset for help on using the changeset viewer.