aboutsummaryrefslogtreecommitdiffstats
path: root/includes/content/Content.php
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2023-03-01 15:33:26 -0500
committerJames D. Forrester <jforrester@wikimedia.org>2023-03-02 08:46:53 -0500
commitad06527fb40545e3a63b83efcd829f88f697fa87 (patch)
tree931e92676a13fb4852f1fb4dd9e492564dd3ced8 /includes/content/Content.php
parent20a8de0f46a1170f74d4e73b3549fbd73a9260ec (diff)
downloadmediawikicore-ad06527fb40545e3a63b83efcd829f88f697fa87.tar.gz
mediawikicore-ad06527fb40545e3a63b83efcd829f88f697fa87.zip
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
Diffstat (limited to 'includes/content/Content.php')
-rw-r--r--includes/content/Content.php1
1 files changed, 1 insertions, 0 deletions
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.