Suppress site notice
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 7 Sep 2006 11:26:34 +0000 (11:26 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 7 Sep 2006 11:26:34 +0000 (11:26 +0000)
maintenance/dumpHTML.inc

index 857a488..e0ef494 100644 (file)
@@ -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 */