* (bug 2394) Undo incompatible breakage to {{msg:}} compatiblity includes
* (bug 1322) Use a shorter cl_sortkey field to avoid breaking on MySQL 4.1
when the default charset is set to utf8
+* (bug 2400) don't send confirmation mail on account creation if
+ $wgEmailAuthentication is false.
=== Caveats ===
* @access private
*/
function addNewAccount() {
- global $wgUser, $wgOut;
+ global $wgUser, $wgOut, $wgEmailAuthentication;
$u = $this->addNewAccountInternal();
$wgUser->setCookies();
$wgUser->saveSettings();
- if( $wgUser->isValidEmailAddr( $wgUser->getEmail() ) ) {
+ if( $ wgEmailAuthentication && $wgUser->isValidEmailAddr( $wgUser->getEmail() ) ) {
$wgUser->sendConfirmationMail();
}