From c23a0d6c893b0b9e5c63d70ca934b6e164e56896 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 4 Sep 2016 19:37:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=BC=93=E5=AD=98=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E6=94=B9=E8=BF=9B=20=E5=8E=BB=E9=99=A4=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E5=87=BD=E6=95=B0=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=92=8C=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/console/command/optimize/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/console/command/optimize/Config.php b/library/think/console/command/optimize/Config.php index d857873f..dc07ee22 100644 --- a/library/think/console/command/optimize/Config.php +++ b/library/think/console/command/optimize/Config.php @@ -78,7 +78,7 @@ class Config extends Command // 加载公共文件 if (is_file($path . 'common' . EXT)) { - $content .= substr(file_get_contents($path . 'common' . EXT), 5) . PHP_EOL; + $content .= substr(php_strip_whitespace($path . 'common' . EXT), 5) . PHP_EOL; } $content .= '\think\Config::set(' . var_export(\think\Config::get(), true) . ');';