mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-13 17:57:21 +00:00
Merge "Move EchoOOUI namespace to MediaWiki\Extension\Notifications\OOUI"
This commit is contained in:
commit
16a1692988
|
@ -1160,7 +1160,6 @@
|
|||
"EchoUpdatePerUserBlacklist": "maintenance/updatePerUserBlacklist.php"
|
||||
},
|
||||
"AutoloadNamespaces": {
|
||||
"EchoOOUI\\": "includes/ooui/",
|
||||
"EchoPush\\": "includes/Push/",
|
||||
"EchoPush\\Api\\": "includes/api/Push/",
|
||||
"MediaWiki\\Extension\\Notifications\\": "includes/"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace EchoOOUI;
|
||||
namespace MediaWiki\Extension\Notifications\OOUI;
|
||||
|
||||
use OOUI\IconElement;
|
||||
use OOUI\LabelElement;
|
|
@ -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',
|
||||
] );
|
||||
|
|
Loading…
Reference in a new issue