Make it possible to override SpecialPreferences::showResetForm()
authorSam Wilson <sam@samwilson.id.au>
Tue, 7 Nov 2017 03:15:24 +0000 (11:15 +0800)
committerSam Wilson <sam@samwilson.id.au>
Tue, 7 Nov 2017 07:49:18 +0000 (15:49 +0800)
Change-Id: I390e9d46fd2b8d4d8a1f9fd250c964a696b48244

includes/specials/SpecialPreferences.php

index 7c55e5c..8ad1630 100644 (file)
@@ -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' );
                }