From a2be70707c1970b37d838f424c9deba3df6c77f4 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 15 Aug 2004 19:22:40 +0000 Subject: [PATCH] New getPageHeader() method. Allow to add some text before outputting the results. --- includes/QueryPage.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index a151405db6..56ed2aa85d 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -64,6 +64,12 @@ class QueryPage { function formatResult( $skin, $result ) { return ''; } + + # The content returned by this function will be output before any result + + function getPageHeader( ) { + return ''; + } # This is the actual workhorse. It does everything needed to make a # real, honest-to-gosh query page. @@ -138,6 +144,8 @@ class QueryPage { $sk = $wgUser->getSkin( ); + + $wgOut->addHTML( $this->getPageHeader() ); $top = wfShowingResults( $offset, $num); $wgOut->addHTML( "

{$top}\n" ); -- 2.20.1