}
/**
- * @return Bool
+ * @return bool
*/
function isListed() {
global $wgAuth;
/**
* Main execution point
+ * @param string $par
*/
function execute( $par ) {
global $wgAuth;
}
/**
- * @param $type string
+ * @param string $type
*/
protected function doReturnTo( $type = 'hard' ) {
$titleObj = Title::newFromText( $this->getRequest()->getVal( 'returnto' ) );
}
/**
- * @param $msg string
+ * @param string $msg
*/
protected function error( $msg ) {
$this->getOutput()->wrapWikiMsg( "<p class='error'>\n$1\n</p>", $msg );
}
/**
- * @param $fields array
+ * @param array $fields
* @return string
*/
protected function pretty( $fields ) {
}
/**
- * @param $user User
- * @param $pass string
- * @param $newaddr string
- * @return bool|string true or string on success, false on failure
+ * @param User $user
+ * @param string $pass
+ * @param string $newaddr
+ * @return bool|string True or string on success, false on failure
*/
protected function attemptChange( User $user, $pass, $newaddr ) {
global $wgAuth, $wgPasswordAttemptThrottle;
$throttleCount = LoginForm::incLoginThrottle( $user->getName() );
if ( $throttleCount === true ) {
$lang = $this->getLanguage();
- $this->error( array( 'login-throttled', $lang->formatDuration( $wgPasswordAttemptThrottle['seconds'] ) ) );
+ $this->error( array( 'changeemail-throttled', $lang->formatDuration( $wgPasswordAttemptThrottle['seconds'] ) ) );
return false;
}