From: Florian Date: Sun, 26 Jul 2015 14:03:07 +0000 (+0200) Subject: Move pager inside searchresults div X-Git-Tag: 1.31.0-rc.0~10463^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=e7082c04a18e3f9bd49a9ebcedfbb030e57ed973;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) ); }