Changeset 1907

Show
Ignore:
Timestamp:
02/03/2008 09:44:50 AM (11 months ago)
Author:
Geert
Message:

email::connect() now returns the Swift object

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/email.php

    r1903 r1907  
    1919         * 
    2020         * @param   string   DSN connection string 
    21          * @return  void 
     21         * @return  object   Swift object 
    2222         */ 
    2323        public static function connect($config = NULL) 
     
    6969 
    7070                // Create the SwiftMailer instance 
    71                 self::$mail = new Swift($connection); 
     71                return self::$mail = new Swift($connection); 
    7272        } 
    7373