Merge "Wrap sitenotices in core"

This commit is contained in:
jenkins-bot 2024-04-30 07:03:26 +00:00 committed by Gerrit Code Review
commit f1d455893b
2 changed files with 2 additions and 1 deletions

View file

@ -925,7 +925,7 @@ class SkinMinerva extends SkinMustache {
protected function prepareBanners( $siteNotice ) {
$banners = [];
if ( $siteNotice && $this->getConfig()->get( 'MinervaEnableSiteNotice' ) ) {
$banners[] = '<div id="siteNotice">' . $siteNotice . '</div>';
$banners[] = $siteNotice;
} else {
$banners[] = '<div id="siteNotice"></div>';
}

View file

@ -132,6 +132,7 @@
"templateDirectory": "includes/Skins",
"templateSectionLinks": "SectionLinks",
"tempUserBanner": true,
"wrapSiteNotice": true,
"scripts": [
"skins.minerva.scripts"
],