Merge "Remove return value from FormSpecialPage::checkExecutePermissions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 6 Oct 2015 00:00:23 +0000 (00:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 6 Oct 2015 00:00:23 +0000 (00:00 +0000)
includes/specialpage/FormSpecialPage.php
includes/specials/SpecialPasswordReset.php

index 42c5980..d22875b 100644 (file)
@@ -169,7 +169,6 @@ abstract class FormSpecialPage extends SpecialPage {
         * Failures here must throw subclasses of ErrorPageError.
         * @param User $user
         * @throws UserBlockedError
-        * @return bool True
         */
        protected function checkExecutePermissions( User $user ) {
                $this->checkPermissions();
@@ -182,8 +181,6 @@ abstract class FormSpecialPage extends SpecialPage {
                if ( $this->requiresWrite() ) {
                        $this->checkReadOnly();
                }
-
-               return true;
        }
 
        /**
index 9e72807..f1eb8c2 100644 (file)
@@ -58,7 +58,7 @@ class SpecialPasswordReset extends FormSpecialPage {
                        throw new ErrorPageError( 'internalerror', 'resetpass_forbidden' );
                }
 
-               return parent::checkExecutePermissions( $user );
+               parent::checkExecutePermissions( $user );
        }
 
        protected function getFormFields() {