diff --git a/Sitenotice.php b/Sitenotice.php index f781dd83..a4cbec8f 100644 --- a/Sitenotice.php +++ b/Sitenotice.php @@ -1,24 +1,37 @@ EOF; return true; }*/ + +if ( $wgDBname === 'metawiki' ) { + $wgHooks['SiteNoticeAfter'][] = 'onSiteNoticeAfter'; + function onSiteNoticeAfter( &$siteNotice, $skin ) { + + $siteNotice .= << + Miraheze is currently performing maintenance that might affect the search functionality on Meta. We are sorry for the inconvenience. + +EOF; + return true; + } +}