Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-forums.php

    r5689 r5729  
    167167            'primary_link'      => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/' ),
    168168            'type'              => 'new_forum_topic',
    169             'item_id'           => (int)$bp->groups->current_group->id,
    170             'user_id'           => (int)$topic->topic_poster,
     169            'item_id'           => (int) $bp->groups->current_group->id,
     170            'user_id'           => (int) $topic->topic_poster,
    171171            'secondary_item_id' => $topic->topic_id,
    172172            'recorded_time '    => $topic->topic_time
     
    209209            'primary_link'      => apply_filters( 'groups_activity_new_forum_post_primary_link', $primary_link . "#post-" . $post_id ),
    210210            'type'              => 'new_forum_post',
    211             'item_id'           => (int)$bp->groups->current_group->id,
    212             'user_id'           => (int)$post->poster_id,
     211            'item_id'           => (int) $bp->groups->current_group->id,
     212            'user_id'           => (int) $post->poster_id,
    213213            'secondary_item_id' => $post_id,
    214214            'recorded_time'     => $post->post_time
     
    249249
    250250            // The activity item for each post
    251             foreach ( (array)$posts as $post ) {
     251            foreach ( (array) $posts as $post ) {
    252252                bp_activity_delete( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $post->post_id, 'component' => $bp->groups->id, 'type' => 'new_forum_post' ) );
    253253            }
Note: See TracChangeset for help on using the changeset viewer.