Skip to:
Content

BuddyPress.org

Changeset 2089


Ignore:
Timestamp:
11/13/2009 02:16:49 AM (16 years ago)
Author:
apeatling
Message:

Setting specific activity comment ordering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r2088 r2089  
    307307
    308308        /* Retrieve all descendants of the $root node */
    309         $descendants = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$bp->activity->table_name} WHERE component_action = 'activity_comment' AND item_id = %d AND mptt_left BETWEEN %d AND %d", $activity_id, $left, $right ) );
     309        $descendants = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$bp->activity->table_name} WHERE component_action = 'activity_comment' AND item_id = %d AND mptt_left BETWEEN %d AND %d ORDER BY date_recorded ASC", $activity_id, $left, $right ) );
    310310
    311311        /* Loop descendants and build an assoc array */
Note: See TracChangeset for help on using the changeset viewer.