mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
trivial optimization
This commit is contained in:
parent
213e81bdbd
commit
1b22d48a35
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class FileLog extends BaseLog {
|
|||
$config = $this->config($config);
|
||||
$this->_path = $config['path'];
|
||||
$this->_file = $config['file'];
|
||||
if (!empty($this->_file) && !preg_match('/\.log$/', $this->_file)) {
|
||||
if (!empty($this->_file) && substr($this->_file, -4) !== '.log') {
|
||||
$this->_file .= '.log';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue