mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
Wrap the sitenotice with div element as other skins do
Change-Id: Ifea461636f9000527556dc2881f83f00be5bff76
This commit is contained in:
parent
dddde1c208
commit
b4b2f4ded3
|
@ -638,11 +638,11 @@ class SkinMinerva extends SkinMustache {
|
|||
* @return array
|
||||
*/
|
||||
protected function prepareBanners( $siteNotice ) {
|
||||
$banners = [ '<div id="siteNotice"></div>' ];
|
||||
if ( $this->getConfig()->get( 'MinervaEnableSiteNotice' ) ) {
|
||||
if ( $siteNotice ) {
|
||||
$banners[] = $siteNotice;
|
||||
}
|
||||
$banners = [];
|
||||
if ( $siteNotice && $this->getConfig()->get( 'MinervaEnableSiteNotice' ) ) {
|
||||
$banners[] = '<div id="siteNotice">' . $siteNotice . '</div>';
|
||||
} else {
|
||||
$banners[] = '<div id="siteNotice"></div>';
|
||||
}
|
||||
return $banners;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue