From 78d5bbd47168799a4ac67fdd4675494e0d306e97 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 11 Dec 2015 09:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9B=AE=E5=BD=95=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8F=AA=E7=94=9F=E6=88=90config.php=E6=96=87?= =?UTF-8?q?=E4=BB=B6=20=E5=85=B6=E4=BB=96=E7=9A=84=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/create.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/library/think/create.php b/library/think/create.php index 10c1f6fb..81f1fcca 100644 --- a/library/think/create.php +++ b/library/think/create.php @@ -60,7 +60,7 @@ class Create mkdir(APP_PATH . dirname($file), 0777, true); } if (!is_file(APP_PATH . $file)) { - file_put_contents(APP_PATH . $file, ''); + file_put_contents(APP_PATH . $file, 'php' == pathinfo($file, PATHINFO_EXTENSION) ? "