From: Evan Prodromou Date: Fri, 10 Jun 2011 21:46:35 +0000 (-0400) Subject: remember to send confirmation email for registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f294ed009101aaf38028d82a0dcbc00c09daafe1;p=quix0rs-gnu-social.git remember to send confirmation email for registration --- diff --git a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php index a923ac4c30..e11cb082d6 100644 --- a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php +++ b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php @@ -241,7 +241,7 @@ class DomainStatusNetworkPlugin extends Plugin return !empty($user); } - static function registerEmail($email, $sendWelcome, $template) + static function registerEmail($email) { $domain = self::toDomain($email); diff --git a/plugins/DomainStatusNetwork/actions/globalregister.php b/plugins/DomainStatusNetwork/actions/globalregister.php index ed9bfc3c2c..1e34261099 100644 --- a/plugins/DomainStatusNetwork/actions/globalregister.php +++ b/plugins/DomainStatusNetwork/actions/globalregister.php @@ -81,7 +81,8 @@ class GlobalregisterAction extends GlobalApiAction function handle($argarray=null) { try { - DomainStatusNetworkPlugin::registerEmail($this->email, true); + $confirm = DomainStatusNetworkPlugin::registerEmail($this->email); + EmailRegistrationPlugin::sendConfirmEmail($confirm); $this->showSuccess(); } catch (ClientException $e) { $this->showError($e->getMessage(), $e->getCode());