diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2023-03-01 15:33:26 -0500 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2023-03-02 08:46:53 -0500 |
commit | ad06527fb40545e3a63b83efcd829f88f697fa87 (patch) | |
tree | 931e92676a13fb4852f1fb4dd9e492564dd3ced8 /includes/api/ApiQueryWatchlist.php | |
parent | 20a8de0f46a1170f74d4e73b3549fbd73a9260ec (diff) | |
download | mediawikicore-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/api/ApiQueryWatchlist.php')
-rw-r--r-- | includes/api/ApiQueryWatchlist.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 0e6ebfc575f8..730f8cb02b4f 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -25,6 +25,7 @@ use MediaWiki\CommentStore\CommentStore; use MediaWiki\Linker\LinkTarget; use MediaWiki\ParamValidator\TypeDef\UserDef; use MediaWiki\Revision\RevisionRecord; +use MediaWiki\Title\Title; use Wikimedia\ParamValidator\ParamValidator; use Wikimedia\ParamValidator\TypeDef\IntegerDef; |