Skip to content

Commit

Permalink
V2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hnxsh committed Apr 6, 2020
1 parent 0ace276 commit 2642f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/admin/controller/system/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private function modDbConfig($key)
$tpl_path = ROOT_PATH . current($this->config('tpl_dir')) . '/' . model('admin.content.ContentSort')->getTheme();

if (! $htmldir || ! file_exists($tpl_path . '/' . $htmldir)) {
if (! create_dir($tpl_path . '/' . $value)) {
if (! check_dir($tpl_path . '/' . $value, true)) {
return;
} // 原来没有目录时只创建目录,创建失败时直接不修改
} else {
Expand Down

0 comments on commit 2642f01

Please sign in to comment.