Fixes invocation of EmailStorage methods.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 22 Mar 2008 23:50:49 +0000 (00:50 +0100)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 22 Mar 2008 23:52:51 +0000 (00:52 +0100)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
include/googleapps.inc.php
modules/register.php

index e6cd099..54e3efe 100644 (file)
@@ -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.
index 7d43a1b..1af07e5 100644 (file)
@@ -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');