Move EchoOOUI namespace to MediaWiki\Extension\Notifications\OOUI

Bug: T305667
Change-Id: Ibd9bb70b714acfb34ae89960c0e1e44ead5d997d
This commit is contained in:
Reedy 2022-04-08 01:30:41 +01:00
parent f9c1a0fedb
commit 3555ea1089
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',
] );