Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
if ($account->activate_mail_redirection) {
require_once('emails.inc.php');
$storage = new EmailStorage($userid, 'googleapps');
- $storage->enable();
+ $storage->activate();
}
// Sends the 'account created' email to the user, with basic documentation.
// Re-adds the email redirection (if the user did request it).
if ($account->activate_mail_redirection) {
$storage = new EmailStorage($userid, 'googleapps');
- $storage->enable();
+ $storage->activate();
}
// Sends an email to the account owner.
if (Post::v('imap')) {
require_once 'emails.inc.php';
$storage = new EmailStorage(S::v('uid'), 'imap');
- $storage->enable();
+ $storage->activate();
}
pl_redirect('profile/edit');