Update changelog, CS fixes

pull/5838/head
Aleksander Machniak 7 years ago
parent 8b7c7dd5a9
commit a8278d61cf

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Add .log suffix to all log file names, add option log_file_ext to control this (#313)
- Archive: Fix archiving by sender address on cyrus-imap
- Archive: Add Thunderbird compatible Month option (#5623)
- Return "401 Unauthorized" status when login fails (#5663)

@ -1250,17 +1250,18 @@ class rcube
}
}
if (self::$instance) {
$log_suf = self::$instance->config->get('log_file_ext', '.log');
} else {
$log_suf = '.log';
}
if (empty($log_dir)) {
$log_dir = RCUBE_INSTALL_PATH . 'logs';
}
return file_put_contents("$log_dir/$name$log_suf", $line, FILE_APPEND) !== false;
if (self::$instance) {
$name .= self::$instance->config->get('log_file_ext', '.log');
}
else {
$name .= '.log';
}
return file_put_contents("$log_dir/$name", $line, FILE_APPEND) !== false;
}
/**

Loading…
Cancel
Save