Merge "Move pager inside searchresults div"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 11 Aug 2015 05:58:56 +0000 (05:58 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 11 Aug 2015 05:58:56 +0000 (05:58 +0000)
1  2 
includes/specials/SpecialSearch.php

@@@ -390,12 -390,13 +390,13 @@@ class SpecialSearch extends SpecialPag
                                $this->showCreateLink( $title, $num, $titleMatches, $textMatches );
                        }
                }
-               $out->addHtml( "</div>" );
  
                if ( $prevnext ) {
                        $out->addHTML( "<p class='mw-search-pager-bottom'>{$prevnext}</p>\n" );
                }
  
+               $out->addHtml( "</div>" );
                Hooks::run( 'SpecialSearchResultsAppend', array( $this, $out ) );
  
        }
         * @return bool
         */
        protected function shouldRunSuggestedQuery( SearchResultSet $textMatches ) {
 -              global $wgSearchRunSuggestedQueryPercent;
 -
                if ( !$this->runSuggestion ||
                        !$textMatches->hasSuggestion() ||
                        $textMatches->numRows() > 0 ||
                // Generate a random number between 0 and 1. If the
                // number is less than the desired percentages run it.
                $rand = rand( 0, getrandmax() ) / getrandmax();
 -              return $wgSearchRunSuggestedQueryPercent > $rand;
 +              return $this->getConfig()->get( 'SearchRunSuggestedQueryPercent' ) > $rand;
        }
  
        /**