dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6b0c35
)
New getPageHeader() method. Allow to add some text before outputting the results.
author
Antoine Musso
<hashar@users.mediawiki.org>
Sun, 15 Aug 2004 19:22:40 +0000
(19:22 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Sun, 15 Aug 2004 19:22:40 +0000
(19:22 +0000)
includes/QueryPage.php
patch
|
blob
|
history
diff --git
a/includes/QueryPage.php
b/includes/QueryPage.php
index
a151405
..
56ed2aa
100644
(file)
--- 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( "<p>{$top}\n" );