Tailors the 'nomdusage' validation email according to the recipient (and not to the...
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 5 Apr 2008 19:11:29 +0000 (21:11 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sat, 5 Apr 2008 19:11:29 +0000 (21:11 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
include/validations/nomusage.inc.php

index 26181b6..952c0c1 100644 (file)
@@ -94,7 +94,7 @@ class UsageReq extends Validate
             }
             if ($globals->mailstorage->googleapps_domain) {
                 require_once 'googleapps.inc.php';
-                $account = new GoogleAppsAccount(S::v('uid'), S::v('forlife'));
+                $account = new GoogleAppsAccount($this->uid, $this->forlife);
                 if ($account->active()) {
                     $res .= "\n\n  Si tu utilises Google Apps, tu peux changer ton nom d'usage sur https://mail.google.com/a/polytechnique.org/#settings/accounts";
                 }