ZP-828 Use __constructor for PHP 7 compatibility. Released under the Affero...

ZP-828 Use __constructor for PHP 7 compatibility. Released under the Affero GNU General Public License (AGPL) version 3.
parent ca84914c
......@@ -75,7 +75,7 @@ class Mail_mail extends Mail {
*
* @param array $params Extra arguments for the mail() function.
*/
function Mail_mail($params = null)
function __construct($params = null)
{
// The other mail implementations accept parameters as arrays.
// In the interest of being consistent, explode an array into
......
......@@ -67,7 +67,7 @@ class Mail_sendmail extends Mail {
* defaults.
* @access public
*/
function Mail_sendmail($params)
function __construct($params)
{
if (isset($params['sendmail_path'])) {
$this->sendmail_path = $params['sendmail_path'];
......
......@@ -217,7 +217,7 @@ class Mail_smtp extends Mail {
* defaults.
* @access public
*/
function Mail_smtp($params)
function __construct($params)
{
if (isset($params['host'])) $this->host = $params['host'];
if (isset($params['port'])) $this->port = $params['port'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment