From 8cb2f2f252558a408744a4bc71a152ad5332599b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taavi=20V=C3=A4=C3=A4n=C3=A4nen?= Date: Wed, 4 May 2022 11:29:14 +0300 Subject: [PATCH] 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 --- extension.json | 4 +++- includes/TitleBlacklistEntry.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extension.json b/extension.json index 9d732f74..c45ab15f 100644 --- a/extension.json +++ b/extension.json @@ -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/" diff --git a/includes/TitleBlacklistEntry.php b/includes/TitleBlacklistEntry.php index 8c9b3ade..e3dc91cf 100644 --- a/includes/TitleBlacklistEntry.php +++ b/includes/TitleBlacklistEntry.php @@ -309,3 +309,5 @@ class TitleBlacklistEntry { return $message ?: "titleblacklist-forbidden-{$operation}"; } } + +class_alias( TitleBlacklistEntry::class, 'TitleBlacklistEntry' );