X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Femails.inc.php;h=f9c131a17c431f183ebdfd05a1c2e92810c20c24;hb=113f6de8c1546c1d1caf6e6b48f5e10ea85fd211;hp=bcf0cc42ec910ed96ec2a517c7933306c9e9d75f;hpb=4528293427935ad71dba19a6ca9f425b94ba3985;p=platal.git diff --git a/include/emails.inc.php b/include/emails.inc.php index bcf0cc4..f9c131a 100644 --- a/include/emails.inc.php +++ b/include/emails.inc.php @@ -264,7 +264,7 @@ class EmailStorage extends Email // Shortname to realname mapping for known mail storage backends. private $display_names = array( 'imap' => 'Accès de secours aux emails (IMAP)', - 'googleapps' => 'Compte GMail / Google Apps', + 'googleapps' => 'Compte Google Apps', ); // Retrieves the current list of actives storages. @@ -273,7 +273,7 @@ class EmailStorage extends Email $res = XDB::query("SELECT mail_storage FROM auth_user_md5 WHERE user_id = {?}", $this->uid); - return new FlagSet($res->fetchOneCell()); + return new PlFlagSet($res->fetchOneCell()); } // Updates the list of active storages. @@ -281,7 +281,7 @@ class EmailStorage extends Email { XDB::execute("UPDATE auth_user_md5 SET mail_storage = {?} - WHERE user_id = {?}", $storages->flags(), $this->uid); + WHERE user_id = {?}", $storages, $this->uid); } // Returns the list of allowed storages for the @p user.