From 8486975d854529c8a78c8537b38cb57bd455d909 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 7 Sep 2006 11:26:34 +0000 Subject: [PATCH] Suppress site notice --- maintenance/dumpHTML.inc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/maintenance/dumpHTML.inc b/maintenance/dumpHTML.inc index 857a488c58..e0ef494bd2 100644 --- a/maintenance/dumpHTML.inc +++ b/maintenance/dumpHTML.inc @@ -470,6 +470,8 @@ class DumpHTML { if ( !$this->setupDone ) { $wgHooks['GetLocalURL'][] =& $this; $wgHooks['GetFullURL'][] =& $this; + $wgHooks['SiteNoticeBefore'][] =& $this; + $wgHooks['SiteNoticeAfter'][] =& $this; $this->oldArticlePath = $wgServer . $wgArticlePath; } @@ -849,7 +851,19 @@ ENDTEXT; */ function sliceFilter( $s ) { return crc32( $s ) % $this->sliceDenominator == $this->sliceNumerator - 1; - } + } + + /** + * No site notice + */ + function onSiteNoticeBefore( &$text ) { + $text = ''; + return false; + } + function onSiteNoticeAfter( &$text ) { + $text = ''; + return false; + } } /** XML parser callback */ -- 2.20.1