mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
is_dir check is removed
This commit is contained in:
@ -102,9 +102,7 @@ class FileTarget extends Target
|
||||
public function export()
|
||||
{
|
||||
$logPath = dirname($this->logFile);
|
||||
if (!is_dir($logPath)) {
|
||||
FileHelper::createDirectory($logPath, $this->dirMode, true);
|
||||
}
|
||||
FileHelper::createDirectory($logPath, $this->dirMode, true);
|
||||
|
||||
$text = implode("\n", array_map([$this, 'formatMessage'], $this->messages)) . "\n";
|
||||
if (($fp = @fopen($this->logFile, 'a')) === false) {
|
||||
|
||||
Reference in New Issue
Block a user