From 3b4c56e0e193ce6d4f559346752a6b0c3bf48428 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 10 Dec 2016 11:21:08 +0000 Subject: [PATCH] Add PHP5-style constructor git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14631 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver_SendMail.class.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/class/deliver/Deliver_SendMail.class.php b/class/deliver/Deliver_SendMail.class.php index 5eaafeb6..dbd56a13 100644 --- a/class/deliver/Deliver_SendMail.class.php +++ b/class/deliver/Deliver_SendMail.class.php @@ -47,13 +47,13 @@ class Deliver_SendMail extends Deliver { var $sendmail_command = ''; /** - * Constructor function + * Constructor (PHP5 style, required in some future version of PHP) * @param array configuration options. array key = option name, * array value = option value. * @return void * @since 1.5.1 */ - function Deliver_SendMail($params=array()) { + function __construct($params=array()) { if (!empty($params) && is_array($params)) { // set extra sendmail arguments if (isset($params['sendmail_args'])) { @@ -62,6 +62,17 @@ class Deliver_SendMail extends Deliver { } } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * @param array configuration options. array key = option name, + * array value = option value. + * @return void + * @since 1.5.1 + */ + function Deliver_SendMail($params=array()) { + self::__construct($params); + } + /** * function preWriteToStream * -- 2.25.1