From e6479374bd90779e402dc5766673154c0881b1bb Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Tue, 7 Nov 2017 11:15:24 +0800 Subject: [PATCH] Make it possible to override SpecialPreferences::showResetForm() Change-Id: I390e9d46fd2b8d4d8a1f9fd250c964a696b48244 --- includes/specials/SpecialPreferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 7c55e5c8cb..8ad1630757 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -127,7 +127,7 @@ class SpecialPreferences extends SpecialPage { return Preferences::getFormObject( $user, $context ); } - private function showResetForm() { + protected function showResetForm() { if ( !$this->getUser()->isAllowed( 'editmyoptions' ) ) { throw new PermissionsError( 'editmyoptions' ); } -- 2.20.1