Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2011 06:32:02 AM (14 years ago)
Author:
djpaul
Message:

Tidy up whitespace. Fixes #3466, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-notifications.php

    r4907 r4961  
    5959    if ( empty( $grouped_notifications ) )
    6060        return false;
    61    
     61
    6262    $renderable = array();
    63    
     63
    6464    // Calculate a renderable output for each notification type
    6565    foreach ( (array)$grouped_notifications as $component_name => $action_arrays ) {
     
    7676            if ( isset( $bp->{$component_name}->format_notification_function ) && function_exists( $bp->{$component_name}->format_notification_function ) ) {
    7777                $renderable[] = call_user_func( $bp->{$component_name}->format_notification_function, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count );
    78             } elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) { 
     78            } elseif ( isset( $bp->{$component_name}->notification_callback ) && function_exists( $bp->{$component_name}->notification_callback ) ) {
    7979                if ( 'object' == $format ) {
    8080                    $content = call_user_func( $bp->{$component_name}->notification_callback, $component_action_name, $component_action_items[0]->item_id, $component_action_items[0]->secondary_item_id, $action_item_count, 'array' );
    81                    
     81
    8282                    $notification_object = new stdClass;
    83                    
     83
    8484                    // Minimal backpat with non-compatible notification
    8585                    // callback functions
     
    9191                        $notification_object->href    = $content['link'];
    9292                    }
    93                    
     93
    9494                    $notification_object->id = $component_action_items[0]->id;
    95                    
     95
    9696                    $renderable[]     = $notification_object;
    9797                } else {
Note: See TracChangeset for help on using the changeset viewer.