From: Vincent Zanotti Date: Sat, 22 Mar 2008 23:50:49 +0000 (+0100) Subject: Fixes invocation of EmailStorage methods. X-Git-Tag: xorg/0.9.16~79 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=94c6c7888a4f5489a273b7bcabc7dc9fadec3fca;p=platal.git Fixes invocation of EmailStorage methods. Signed-off-by: Vincent Zanotti --- diff --git a/include/googleapps.inc.php b/include/googleapps.inc.php index e6cd099..54e3efe 100644 --- a/include/googleapps.inc.php +++ b/include/googleapps.inc.php @@ -37,7 +37,7 @@ function post_queue_u_create($job) { 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. @@ -79,7 +79,7 @@ function post_queue_u_update($job) { // 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. diff --git a/modules/register.php b/modules/register.php index 7d43a1b..1af07e5 100644 --- a/modules/register.php +++ b/modules/register.php @@ -484,7 +484,7 @@ class RegisterModule extends PLModule if (Post::v('imap')) { require_once 'emails.inc.php'; $storage = new EmailStorage(S::v('uid'), 'imap'); - $storage->enable(); + $storage->activate(); } pl_redirect('profile/edit');