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/content/Content.php | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/content/Content.php') diff --git a/includes/content/Content.php b/includes/content/Content.php index 0bc061f327d3..5030d98074db 100644 --- a/includes/content/Content.php +++ b/includes/content/Content.php @@ -19,6 +19,7 @@ */ use MediaWiki\Parser\MagicWord; +use MediaWiki\Title\Title; /** * Base interface for representing page content. -- cgit v1.2.3