Merge "Move EchoOOUI namespace to MediaWiki\Extension\Notifications\OOUI"

This commit is contained in:
jenkins-bot 2022-04-25 14:46:23 +00:00 committed by Gerrit Code Review
commit 16a1692988
3 changed files with 5 additions and 4 deletions

View file

@ -1160,7 +1160,6 @@
"EchoUpdatePerUserBlacklist": "maintenance/updatePerUserBlacklist.php"
},
"AutoloadNamespaces": {
"EchoOOUI\\": "includes/ooui/",
"EchoPush\\": "includes/Push/",
"EchoPush\\Api\\": "includes/api/Push/",
"MediaWiki\\Extension\\Notifications\\": "includes/"

View file

@ -1,6 +1,6 @@
<?php
namespace EchoOOUI;
namespace MediaWiki\Extension\Notifications\OOUI;
use OOUI\IconElement;
use OOUI\LabelElement;

View file

@ -1,5 +1,7 @@
<?php
use MediaWiki\Extension\Notifications\OOUI\LabelIconWidget;
class SpecialNotifications extends SpecialPage {
/**
@ -125,7 +127,7 @@ class SpecialNotifications extends SpecialPage {
$markReadSpecialPage->setContext( $this->getContext() );
$markAllAsReadText = $this->msg( 'echo-mark-all-as-read' )->text();
$markAllAsReadLabelIcon = new EchoOOUI\LabelIconWidget( [
$markAllAsReadLabelIcon = new LabelIconWidget( [
'label' => $markAllAsReadText,
'icon' => 'checkAll',
] );
@ -167,7 +169,7 @@ class SpecialNotifications extends SpecialPage {
$out->addJsConfigVars( 'wgEchoReadState', 'unread' );
$markReadSectionText = $this->msg( 'echo-specialpage-section-markread' )->text();
$markAsReadLabelIcon = new EchoOOUI\LabelIconWidget( [
$markAsReadLabelIcon = new LabelIconWidget( [
'label' => $markReadSectionText,
'icon' => 'checkAll',
] );