From 7876dc27649559a0553a0cf822a6127df2b97c9a Mon Sep 17 00:00:00 2001 From: Laura van Helvoort Date: Wed, 1 May 2024 21:14:08 +0200 Subject: [PATCH] remove style references --- src/Hooks/MainHookHandler.php | 3 --- src/SpecialPage/SpecialNetworkNotice.php | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/Hooks/MainHookHandler.php b/src/Hooks/MainHookHandler.php index 7470b26..e9f23fc 100644 --- a/src/Hooks/MainHookHandler.php +++ b/src/Hooks/MainHookHandler.php @@ -57,7 +57,6 @@ public function onSiteNoticeAfter( &$siteNotice, $skin ) { 'networknotice', [ 'notice_text', - 'style', 'category', 'prefix', 'notice_id' @@ -75,7 +74,6 @@ public function onSiteNoticeAfter( &$siteNotice, $skin ) { if ( empty( $row->category ) ) { $siteNotice .= NoticeHtml::getNoticeHTML( $out, - $row->style, $row->notice_text, $row->notice_id ); @@ -84,7 +82,6 @@ public function onSiteNoticeAfter( &$siteNotice, $skin ) { if ( $category === $row->category ) { $siteNotice .= NoticeHtml::getNoticeHTML( $out, - $row->style, $row->notice_text, $row->notice_id ); diff --git a/src/SpecialPage/SpecialNetworkNotice.php b/src/SpecialPage/SpecialNetworkNotice.php index 04fc941..4bc0a23 100644 --- a/src/SpecialPage/SpecialNetworkNotice.php +++ b/src/SpecialPage/SpecialNetworkNotice.php @@ -214,8 +214,6 @@ public function execute( $par ) { foreach ( $currentnotices as $row ) { $preContent = $this->msg( 'networknotice-create-notice-text-label' )->text() . ' ' . $row->notice_text . "\n"; - $preContent .= $this->msg( 'networknotice-create-notice-style-label' )->text() - . ' ' . $row->style . "\n"; if ( $row->wiki ) { $preContent .= $this->msg( 'networknotice-create-notice-wiki-label' )->text() . ' ' . $row->wiki . "\n"; @@ -363,7 +361,6 @@ private function getNetworkNotices() { 'notice_id', 'label', 'notice_text', - 'style', 'wiki', 'category', 'prefix', @@ -386,7 +383,6 @@ private function getNetworkNoticeById( $id ) { 'notice_id', 'label', 'notice_text', - 'style', 'wiki', 'category', 'prefix',