From c06fc82a9da725cd3bcec07b62a1b8fbb6c4d781 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Mar 2023 01:40:16 +0100 Subject: [PATCH] Clean code --- htdocs/core/class/conf.class.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 2b3ddba9881..589d28453fc 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -723,14 +723,6 @@ class Conf } } - // conf->mailing->email_from = email by default to send Dolibarr emailings - if (isModEnabled('mailing')) { - $this->mailing->email_from = $this->email_from; - if (!empty($this->global->MAILING_EMAIL_FROM)) { - $this->mailing->email_from = $this->global->MAILING_EMAIL_FROM; - } - } - if (!isset($this->global->MAIN_HIDE_WARNING_TO_ENCOURAGE_SMTP_SETUP)) { $this->global->MAIN_HIDE_WARNING_TO_ENCOURAGE_SMTP_SETUP = 1; }