Change-Id: I6f413a633b71739592aae8c8b2db61ad4abc2a79
+ public function isListed() {
global $wgAuth;
return $wgAuth->allowPropChange( 'emailaddress' );
global $wgAuth;
return $wgAuth->allowPropChange( 'emailaddress' );
$out->disallowUserJs();
$out->addModules( 'mediawiki.special.changeemail' );
$out->disallowUserJs();
$out->addModules( 'mediawiki.special.changeemail' );
- return parent::execute( $par );
+ parent::execute( $par );
}
protected function checkExecutePermissions( User $user ) {
}
protected function checkExecutePermissions( User $user ) {
* @param string $newaddr
* @return Status
*/
* @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 ) ) {
global $wgAuth;
if ( $newaddr != '' && !Sanitizer::validateEmail( $newaddr ) ) {