1、bug的修复
2、内核更新
This commit is contained in:
6
core/library/think/cache/driver/File.php
vendored
6
core/library/think/cache/driver/File.php
vendored
@@ -38,8 +38,8 @@ class File
|
||||
if (!empty($options)) {
|
||||
$this->options = array_merge($this->options, $options);
|
||||
}
|
||||
if (substr($this->options['path'], -1) != '/') {
|
||||
$this->options['path'] .= '/';
|
||||
if (substr($this->options['path'], -1) != DS) {
|
||||
$this->options['path'] .= DS;
|
||||
}
|
||||
$this->init();
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class File
|
||||
$dir = '';
|
||||
$len = $this->options['path_level'];
|
||||
for ($i = 0; $i < $len; $i++) {
|
||||
$dir .= $name{$i} . '/';
|
||||
$dir .= $name{$i} . DS;
|
||||
}
|
||||
if (!is_dir($this->options['path'] . $dir)) {
|
||||
mkdir($this->options['path'] . $dir, 0755, true);
|
||||
|
||||
Reference in New Issue
Block a user