Skip to:
Content

bbPress.org

Changeset 2378


Ignore:
Timestamp:
09/24/2009 06:08:49 PM (13 years ago)
Author:
mdawaffe
Message:

make sure recent search is ordered by post_time. branches/0.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9/search.php

    r1078 r2378  
    1010    add_filter( 'bb_recent_search_fields',   create_function( '$f', 'return $f . ", MAX(post_time) AS post_time";' ) );
    1111    add_filter( 'bb_recent_search_group_by', create_function( '', 'return "t.topic_id";' ) );
    12     $bb_query_form->BB_Query_Form( 'post', array(), array( 'per_page' => 5, 'post_status' => 0, 'topic_status' => 0, 'post_text' => $q, 'forum_id', 'tag', 'topic_author', 'post_author' ), 'bb_recent_search' );
     12    $bb_query_form->BB_Query_Form( 'post', array(), array( 'order_by' => 'p.post_time', 'per_page' => 5, 'post_status' => 0, 'topic_status' => 0, 'post_text' => $q, 'forum_id', 'tag', 'topic_author', 'post_author' ), 'bb_recent_search' );
    1313    $recent = $bb_query_form->results;
    1414
Note: See TracChangeset for help on using the changeset viewer.