Skip to content

Commit

Permalink
Update Sitenotice.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega committed Aug 7, 2022
1 parent 5c4003f commit 212136f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Sitenotice.php
Expand Up @@ -17,9 +17,7 @@
// Global SiteNotice
/* if ( !$wmgSiteNoticeOptOut ) {
// show to all users
$wgHooks['SiteNoticeAfter'][] = 'onSiteNoticeAfter';
function onSiteNoticeAfter( &$siteNotice, $skin ) {
$wgHooks['SiteNoticeAfter'][] = static function ( &$siteNotice, $skin ) {
$siteNotice .= <<<EOF
<table style="width: 100% !important;">
<tbody><tr>
Expand All @@ -33,9 +31,7 @@ function onSiteNoticeAfter( &$siteNotice, $skin ) {

// Specific wiki SiteNotice
/* if ( $wi->isAnyOfExtensionsActive( 'Vector' ) ) {
$wgHooks['SiteNoticeAfter'][] = 'onSiteNoticeAfter';
function onSiteNoticeAfter( &$siteNotice, $skin ) {
$wgHooks['SiteNoticeAfter'][] = static function ( &$siteNotice, $skin ) {
$siteNotice .= <<<EOF
<table style="width: 100% !important;">
<tbody><tr>
Expand Down

0 comments on commit 212136f

Please sign in to comment.