From b6bce2e521df10667efa459736c533cc2fd95812 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Mon, 15 Dec 2014 17:45:30 +0100 Subject: [PATCH] SpecialPage::execute doesn't return anything Change-Id: I6f413a633b71739592aae8c8b2db61ad4abc2a79 --- includes/specials/SpecialChangeEmail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialChangeEmail.php b/includes/specials/SpecialChangeEmail.php index e09c8ace43..06ede617de 100644 --- a/includes/specials/SpecialChangeEmail.php +++ b/includes/specials/SpecialChangeEmail.php @@ -39,7 +39,7 @@ class SpecialChangeEmail extends FormSpecialPage { /** * @return bool */ - function isListed() { + public function isListed() { global $wgAuth; return $wgAuth->allowPropChange( 'emailaddress' ); @@ -54,7 +54,7 @@ class SpecialChangeEmail extends FormSpecialPage { $out->disallowUserJs(); $out->addModules( 'mediawiki.special.changeemail' ); - return parent::execute( $par ); + parent::execute( $par ); } protected function checkExecutePermissions( User $user ) { @@ -149,7 +149,7 @@ class SpecialChangeEmail extends FormSpecialPage { * @param string $newaddr * @return Status */ - protected function attemptChange( User $user, $pass, $newaddr ) { + private function attemptChange( User $user, $pass, $newaddr ) { global $wgAuth; if ( $newaddr != '' && !Sanitizer::validateEmail( $newaddr ) ) { -- 2.20.1