Move pager inside searchresults div
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sun, 26 Jul 2015 14:03:07 +0000 (16:03 +0200)
committerFlorianschmidtwelzow <florian.schmidt.stargatewissen@gmail.com>
Thu, 6 Aug 2015 20:19:43 +0000 (20:19 +0000)
The pager is part of the searchresults page, but can't be styled
easily like the searchresults div container, because it's outside
the container. The pager should be in one block element with the
serach results.

This enables (e.g. extensions) to add content to the right side
of the search result page without having the problem with a pager,
that can't easily moved with CSS.

Change-Id: I52d9aacc1f396f42238318ae220266c7498b0824

includes/specials/SpecialSearch.php

index e9c4042..d0cb398 100644 (file)
@@ -390,12 +390,13 @@ class SpecialSearch extends SpecialPage {
                                $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 ) );
 
        }