Fix banners to show CentralNotice

- Restore init of banner array to include needed selector.

Bug: T296077
Change-Id: Id1cec46eadcd057062c791a30db8ca40b35224b9
This commit is contained in:
Clare Ming 2021-11-19 10:17:12 -07:00
parent 79fc729e8c
commit dddde1c208

View file

@ -638,7 +638,7 @@ class SkinMinerva extends SkinMustache {
* @return array
*/
protected function prepareBanners( $siteNotice ) {
$banners = [];
$banners = [ '<div id="siteNotice"></div>' ];
if ( $this->getConfig()->get( 'MinervaEnableSiteNotice' ) ) {
if ( $siteNotice ) {
$banners[] = $siteNotice;