mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 00:48:46 +00:00
Merge "Wrap the sitenotice with div element as other skins do"
This commit is contained in:
commit
1b9d92e17d
|
@ -656,11 +656,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