From ad06527fb40545e3a63b83efcd829f88f697fa87 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 1 Mar 2023 15:33:26 -0500 Subject: Reorg: Namespace the Title class This is moderately messy. Process was principally: * xargs rg --files-with-matches '^use Title;' | grep 'php$' | \ xargs -P 1 -n 1 sed -i -z 's/use Title;/use MediaWiki\\Title\\Title;/1' * rg --files-without-match 'MediaWiki\\Title\\Title;' . | grep 'php$' | \ xargs rg --files-with-matches 'Title\b' | \ xargs -P 1 -n 1 sed -i -z 's/\nuse /\nuse MediaWiki\\Title\\Title;\nuse /1' * composer fix Then manual fix-ups for a few files that don't have any use statements. Bug: T166010 Follows-Up: Ia5d8cb759dc3bc9e9bbe217d0fb109e2f8c4101a Change-Id: If8fc9d0d95fc1a114021e282a706fc3e7da3524b --- includes/import/Hook/AfterImportPageHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/import/Hook') diff --git a/includes/import/Hook/AfterImportPageHook.php b/includes/import/Hook/AfterImportPageHook.php index c060f263ba04..4267d94695ec 100644 --- a/includes/import/Hook/AfterImportPageHook.php +++ b/includes/import/Hook/AfterImportPageHook.php @@ -3,7 +3,7 @@ namespace MediaWiki\Hook; use ForeignTitle; -use Title; +use MediaWiki\Title\Title; /** * This is a hook handler interface, see docs/Hooks.md. -- cgit v1.2.3