diff --git a/Sitenotice.php b/Sitenotice.php index d693a594..09644c19 100644 --- a/Sitenotice.php +++ b/Sitenotice.php @@ -1,44 +1,44 @@ config->settings['wgNoticeProject']['default'] = 'optout'; } // Global SiteNotice // Increment this version number whenever you change the site notice // and don't comment it out $wgMajorSiteNoticeID = 57; -if ( !$wmgSiteNoticeOptOut ) { +/* if ( !$wmgSiteNoticeOptOut ) { $wgHooks['SiteNoticeAfter'][] = 'onSiteNoticeAfter'; // show to all users function onSiteNoticeAfter( &$siteNotice, $skin ) { global $wmgSiteNoticeOptOut, $snImportant; $siteNotice .= <<
Miraheze will be performing maintenance on May 20th, 2021 between 20:00 UTC and 20:30 UTC. During this maintenance window, you will not be able to view or upload images or videos.
EOF; } -} +} */ // Wrap your sitenotice with
(sitenotice)
// or Google will use the sitenotice for their search result snippet. // Specific wiki sitenotice /* if ( $wgDiscordIncomingWebhookUrl || $wgSlackIncomingWebhookUrl ) { $wgHooks['SiteNoticeAfter'][] = 'onSiteNoticeAfter'; function onSiteNoticeAfter( &$siteNotice, $skin ) { global $wmgSiteNoticeOptOut, $snImportant; $siteNotice .= <<
Unfortunately, between 3 January 2021 and 28 April 2021, Discord & Slack Webhook URLs were available via the MediaWiki API due to GHSA-jmc9-rv2f-g8vv. We advise you to consider resetting and replacing your Discord or Slack webhook via Special:ManageWiki/settings.
EOF; return true; } } */