From e7082c04a18e3f9bd49a9ebcedfbb030e57ed973 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 26 Jul 2015 16:03:07 +0200 Subject: [PATCH] Move pager inside searchresults div 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index e9c4042e51..d0cb398365 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -390,12 +390,13 @@ class SpecialSearch extends SpecialPage { $this->showCreateLink( $title, $num, $titleMatches, $textMatches ); } } - $out->addHtml( "" ); if ( $prevnext ) { $out->addHTML( "

{$prevnext}

\n" ); } + $out->addHtml( "" ); + Hooks::run( 'SpecialSearchResultsAppend', array( $this, $out ) ); } -- 2.20.1