From 7d8768e931509a32958402d9719354f5c4ea0c14 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Thu, 16 Feb 2023 20:27:21 +0100 Subject: Reorg: Move HTML-related classes out of includes/ to Html/ Bug: T321882 Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18 --- includes/widget/NamespaceInputWidget.php | 2 +- includes/widget/SpinnerWidget.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/widget') diff --git a/includes/widget/NamespaceInputWidget.php b/includes/widget/NamespaceInputWidget.php index e8504a16bf2f..1f151280829b 100644 --- a/includes/widget/NamespaceInputWidget.php +++ b/includes/widget/NamespaceInputWidget.php @@ -44,7 +44,7 @@ class NamespaceInputWidget extends \OOUI\DropdownInputWidget { 'in-user-lang' => $config['userLang'] ?? false, 'exclude' => $config['exclude'] ?? null ]; - $namespaceOptions = \Html::namespaceSelectorOptions( $namespaceOptionsParams ); + $namespaceOptions = \MediaWiki\Html\Html::namespaceSelectorOptions( $namespaceOptionsParams ); $options = []; foreach ( $namespaceOptions as $id => $name ) { diff --git a/includes/widget/SpinnerWidget.php b/includes/widget/SpinnerWidget.php index 2db99cdd66a1..71f26f7521af 100644 --- a/includes/widget/SpinnerWidget.php +++ b/includes/widget/SpinnerWidget.php @@ -47,7 +47,7 @@ class SpinnerWidget { * @return string HTML serialization */ public function toString() { - return \Html::rawElement( 'div', $this->attributes, $this->content ); + return \MediaWiki\Html\Html::rawElement( 'div', $this->attributes, $this->content ); } /** -- cgit v1.2.3