mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
路径用DS常量规范
This commit is contained in:
@@ -42,7 +42,7 @@ class File
|
||||
|
||||
//检测日志文件大小,超过配置大小则备份日志文件重新生成
|
||||
if (is_file($destination) && floor($this->config['file_size']) <= filesize($destination)) {
|
||||
rename($destination, dirname($destination) . '/' . time() . '-' . basename($destination));
|
||||
rename($destination, dirname($destination) . DS . time() . '-' . basename($destination));
|
||||
}
|
||||
|
||||
error_log("[{$now}] {$_SERVER['SERVER_ADDR']} {$_SERVER['REMOTE_ADDR']} {$_SERVER['REQUEST_URI']}\r\n{$log}\r\n", 3, $destination);
|
||||
|
||||
Reference in New Issue
Block a user