Add a class_alias for TitleBlacklistEntry too

TitleBlacklist compares cache version in app code, meaning that entries
with old versions will still be deserialized.

Bug: T307513
Change-Id: Icea6022fcf5530b2429ce660e2589dd5954577a7
This commit is contained in:
Taavi Väänänen 2022-05-04 11:29:14 +03:00
parent a1c08ed427
commit 8cb2f2f252
No known key found for this signature in database
GPG key ID: EF242F709F912FBE
2 changed files with 5 additions and 1 deletions

View file

@ -54,7 +54,9 @@
},
"AutoloadClasses": {
"MediaWiki\\Extension\\TitleBlacklist\\TitleBlacklist": "includes/TitleBlacklist.php",
"TitleBlacklist": "includes/TitleBlacklist.php"
"TitleBlacklist": "includes/TitleBlacklist.php",
"MediaWiki\\Extension\\TitleBlacklist\\TitleBlacklistEntry": "includes/TitleBlacklistEntry.php",
"TitleBlacklistEntry": "includes/TitleBlacklistEntry.php"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\TitleBlacklist\\": "includes/"

View file

@ -309,3 +309,5 @@ class TitleBlacklistEntry {
return $message ?: "titleblacklist-forbidden-{$operation}";
}
}
class_alias( TitleBlacklistEntry::class, 'TitleBlacklistEntry' );