From: Tim Starling Date: Thu, 7 Sep 2006 11:26:34 +0000 (+0000) Subject: Suppress site notice X-Git-Tag: 1.31.0-rc.0~55823 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=8486975d854529c8a78c8537b38cb57bd455d909;p=lhc%2Fweb%2Fwiklou.git Suppress site notice --- 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 */