gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/common/mail MailingList.class,1.1,1.2


From: gsmet
Subject: [Gforge-commits] gforge/common/mail MailingList.class,1.1,1.2
Date: Wed, 31 Mar 2004 11:11:04 -0600

Update of /cvsroot/gforge/gforge/common/mail
In directory db.perdue.net:/tmp/cvs-serv28854/common/mail

Modified Files:
        MailingList.class 
Log Message:
* fixed some localization problems
* fixed french translation
* fixed ML creation cronjob
* updated ML UI


Index: MailingList.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/mail/MailingList.class,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- MailingList.class   15 Jan 2004 10:30:42 -0000      1.1
+++ MailingList.class   31 Mar 2004 17:11:01 -0000      1.2
@@ -33,10 +33,6 @@
 
 require_once('common/include/Error.class');
 
-define('MAIL__MAILING_LIST_IS_PRIVATE', '0');
-define('MAIL__MAILING_LIST_IS_PUBLIC', '1');
-define('MAIL__MAILING_LIST_IS_DELETED', '9');
-
 class MailingList extends Error {
 
        /**
@@ -118,7 +114,7 @@
         *
         *      @return boolean success.
         */
-       function create($listName, $description, $isPublic = 1) {
+       function create($listName, $description, $isPublic = 
MAIL__MAILING_LIST_IS_PUBLIC) {
                global $Language;
                
                if(! 
MailingListFactory::userCanAdminMailingLists($this->Group)) {
@@ -126,7 +122,7 @@
                        return false;
                }
                
-               if(!$listName || strlen($listName) < 4) {
+               if(!$listName || strlen($listName) < 
MAIL__MAILING_LIST_NAME_MIN_LENGTH) {
                        $this->setError($Language->getText('mail_common', 
'error_min_name_length'));
                        return false;
                }
@@ -154,7 +150,7 @@
                        . "'".$isPublic."',"
                        . "'".$listPassword."',"
                        . "'".user_getid()."',"
-                       . "1,"
+                       . "'".MAIL__MAILING_LIST_IS_REQUESTED."',"
                        . "'".$description."')";
                
                db_begin();
@@ -227,8 +223,6 @@
                        "WHERE group_list_id='".$this->groupMailingListId."' ".
                        "AND group_id='".$this->Group->getID()."'";
                        
-               echo $sql;
-                       
                $res = db_query($sql);
 
                if (!$res || db_affected_rows($res) < 1) {
@@ -306,8 +300,6 @@
        /**
         * getStatus - get the status of this mailing list
         *
-        * seems to be useless
-        *
         * @return int The status
         */
        function getStatus() {
@@ -343,4 +335,4 @@
 
 }
 
-?>
\ No newline at end of file
+?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]