From: Sam Wilson Date: Tue, 7 Nov 2017 03:15:24 +0000 (+0800) Subject: Make it possible to override SpecialPreferences::showResetForm() X-Git-Tag: 1.31.0-rc.0~1587^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=e6479374bd90779e402dc5766673154c0881b1bb;p=lhc%2Fweb%2Fwiklou.git Make it possible to override SpecialPreferences::showResetForm() Change-Id: I390e9d46fd2b8d4d8a1f9fd250c964a696b48244 --- 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' ); }