Ticket #1222: search.php.2.diff

File search.php.2.diff, 928 bytes (added by GautamGupta, 2 years ago)

Do not limit posts nor order by time

  • search.php

     
    1212        $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 
    15         $bb_query_form->BB_Query_Form( 'topic', array( 'search' => $q ), array( 'post_status' => 0, 'topic_status' => 0, 'search', 'forum_id', 'tag', 'topic_author', 'post_author' ), 'bb_relevant_search' ); 
     15        $bb_query_form->BB_Query_Form( 'post', array( 'search' => $q ), array( 'post_status' => 0, 'topic_status' => 0, 'search', 'forum_id', 'tag', 'topic_author', 'post_author' ), 'bb_relevant_search' ); 
    1616        $relevant = $bb_query_form->results; 
    1717 
    1818        $q = $bb_query_form->get( 'search' );