From b19f6baf1a6ff35b0e790b67aff4f54d865d2e5e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 10 Jun 2017 19:52:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BBuild=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Build.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/think/Build.php b/library/think/Build.php index 13b7bfdc..d08dc50b 100644 --- a/library/think/Build.php +++ b/library/think/Build.php @@ -193,6 +193,10 @@ class Build protected static function buildCommon($module) { $filename = CONF_PATH . ($module ? $module . DS : '') . 'config.php'; + + if (!is_dir(dirname($filename))) { + mkdir(dirname($filename, 0755, true)); + } if (!is_file($filename)) { file_put_contents($filename, "