From b9da596fe8209b4ba214eee2d75a240fc28aeb5d Mon Sep 17 00:00:00 2001 From: gerritbot Date: Sat, 19 Aug 2023 04:15:51 +0000 Subject: [PATCH] Replace some moved Title class uses, now MediaWiki\Title\Title Bug: T321681 Change-Id: I9b9c59a564e81daf01bb99d48dc81c9357e94acc --- includes/Content/GadgetDefinitionContentHandler.php | 2 +- includes/GadgetDefinitionNamespaceRepo.php | 2 +- includes/GadgetRepo.php | 2 +- includes/Hooks.php | 2 +- includes/MediaWikiGadgetsDefinitionRepo.php | 2 +- includes/SpecialGadgets.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Content/GadgetDefinitionContentHandler.php b/includes/Content/GadgetDefinitionContentHandler.php index fb3fc52b..10083a28 100644 --- a/includes/Content/GadgetDefinitionContentHandler.php +++ b/includes/Content/GadgetDefinitionContentHandler.php @@ -30,8 +30,8 @@ use JsonContentHandler; use Linker; use MediaWiki\Content\Renderer\ContentParseParams; use MediaWiki\Revision\SlotRenderingProvider; +use MediaWiki\Title\Title; use ParserOutput; -use Title; class GadgetDefinitionContentHandler extends JsonContentHandler { public function __construct() { diff --git a/includes/GadgetDefinitionNamespaceRepo.php b/includes/GadgetDefinitionNamespaceRepo.php index 748d8300..e07360b3 100644 --- a/includes/GadgetDefinitionNamespaceRepo.php +++ b/includes/GadgetDefinitionNamespaceRepo.php @@ -8,7 +8,7 @@ use MediaWiki\Linker\LinkTarget; use MediaWiki\MediaWikiServices; use MediaWiki\Revision\RevisionLookup; use MediaWiki\Revision\SlotRecord; -use Title; +use MediaWiki\Title\Title; use WANObjectCache; use Wikimedia\Rdbms\Database; diff --git a/includes/GadgetRepo.php b/includes/GadgetRepo.php index f55848c4..9cf793fc 100644 --- a/includes/GadgetRepo.php +++ b/includes/GadgetRepo.php @@ -4,7 +4,7 @@ namespace MediaWiki\Extension\Gadgets; use InvalidArgumentException; use MediaWiki\Linker\LinkTarget; -use Title; +use MediaWiki\Title\Title; abstract class GadgetRepo { diff --git a/includes/Hooks.php b/includes/Hooks.php index 01ec8fa3..13d79037 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -47,6 +47,7 @@ use MediaWiki\Revision\Hook\ContentHandlerDefaultModelForHook; use MediaWiki\Revision\RevisionRecord; use MediaWiki\SpecialPage\Hook\WgQueryPagesHook; use MediaWiki\Storage\Hook\PageSaveCompleteHook; +use MediaWiki\Title\Title; use MediaWiki\User\Hook\UserGetDefaultOptionsHook; use OOUI\HtmlSnippet; use OutputPage; @@ -54,7 +55,6 @@ use RequestContext; use Skin; use SpecialPage; use Status; -use Title; use TitleValue; use User; use Wikimedia\Rdbms\IDatabase; diff --git a/includes/MediaWikiGadgetsDefinitionRepo.php b/includes/MediaWikiGadgetsDefinitionRepo.php index 6c72528d..996ddc5a 100644 --- a/includes/MediaWikiGadgetsDefinitionRepo.php +++ b/includes/MediaWikiGadgetsDefinitionRepo.php @@ -6,9 +6,9 @@ use InvalidArgumentException; use MediaWiki\Linker\LinkTarget; use MediaWiki\MediaWikiServices; use MediaWiki\Revision\SlotRecord; +use MediaWiki\Title\Title; use ObjectCache; use TextContent; -use Title; use WANObjectCache; use Wikimedia\Rdbms\Database; diff --git a/includes/SpecialGadgets.php b/includes/SpecialGadgets.php index f59493c6..bee38b3e 100644 --- a/includes/SpecialGadgets.php +++ b/includes/SpecialGadgets.php @@ -15,9 +15,9 @@ use Html; use HTMLForm; use InvalidArgumentException; use MediaWiki\MediaWikiServices; +use MediaWiki\Title\Title; use Sanitizer; use SpecialPage; -use Title; use Xml; class SpecialGadgets extends SpecialPage {