if ( !$this->setupDone ) {
$wgHooks['GetLocalURL'][] =& $this;
$wgHooks['GetFullURL'][] =& $this;
+ $wgHooks['SiteNoticeBefore'][] =& $this;
+ $wgHooks['SiteNoticeAfter'][] =& $this;
$this->oldArticlePath = $wgServer . $wgArticlePath;
}
*/
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 */