diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2025-10-02 07:44:37 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2025-10-02 07:44:37 +0000 |
| commit | 1880f7c26cd17a35d8b3b58cbc14d2b9ce1189ff (patch) | |
| tree | cd868e9627d2fd5090482afaa8e1d7d70e557f9e /vendor | |
| parent | 2dc5aaea055932df52d0b08992dfdd4b76718411 (diff) | |
added DEBUG_MAIL_LOG_FILE_NAME config to config_defaults.inc.php and regard it in the debug_message extension of email_message_class, closes #5133
Closes #5133
Merge request studip/studip!3839
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/email_message/debug_message.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/vendor/email_message/debug_message.php b/vendor/email_message/debug_message.php index ea8bd6b..4882570 100644 --- a/vendor/email_message/debug_message.php +++ b/vendor/email_message/debug_message.php @@ -9,12 +9,14 @@ class debug_message_class extends email_message_class { + private $logfile = ''; - private $logfile =""; - - function __construct() { - $this->logfile = $GLOBALS['TMP_PATH'] . '/studip-mail-debug.log'; - } + function __construct() { + $this->logfile = implode('/', [ + $GLOBALS['TMP_PATH'], + $GLOBALS['DEBUG_MAIL_LOG_FILE_NAME'] ?? 'studip-mail-debug.log' + ]); + } function SendMail($to,$subject,$body,$headers,$return_path) { if ($log = fopen($this->logfile, "a")){ |
