From ad0e03c86876b9007658e01a9d01982346bed055 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 14 Dec 2015 22:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=BB=98=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=BC=93=E5=AD=98=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/template.php | 2 +- library/think/template/driver/file.php | 2 +- tpl/think_exception.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/template.php b/library/think/template.php index 61c70970..2aa0c96a 100644 --- a/library/think/template.php +++ b/library/think/template.php @@ -32,7 +32,7 @@ class Template 'strip_space' => false, // 是否去除模板文件里面的html空格与换行 'tpl_cache' => true, // 是否开启模板编译缓存,设为false则每次都会重新编译 'compile_type' => 'file', // 模板编译类型 - 'cache_path' => CACHE_PATH, // 模板缓存目录 + 'cache_path' => RUNTIME_PATH . 'template' . DS, // 模板缓存目录 'cache_prefix' => '', // 模板缓存前缀标识,可以动态改变 'cache_time' => 0, // 模板缓存有效期 0 为永久,(以数字为值,单位:秒) 'layout_item' => '{__CONTENT__}', // 布局模板的内容替换标识 diff --git a/library/think/template/driver/file.php b/library/think/template/driver/file.php index 3cd1d207..370c7fce 100644 --- a/library/think/template/driver/file.php +++ b/library/think/template/driver/file.php @@ -25,7 +25,7 @@ class File } // 生成模板缓存文件 if (false === file_put_contents($cacheFile, $content)) { - throw new Exception('_CACHE_WRITE_ERROR_:' . $cacheFile); + throw new Exception('cache write error :' . $cacheFile, 11602); } } diff --git a/tpl/think_exception.tpl b/tpl/think_exception.tpl index 41a83a5b..b16b2448 100644 --- a/tpl/think_exception.tpl +++ b/tpl/think_exception.tpl @@ -22,7 +22,7 @@ h2{ padding-bottom:.3em;line-height:1.225;border-bottom:1px solid #eee;color: #0

:(

-

[ '.$e['code'].' ] '.strip_tags($e['message']);?>

+

[ '.$e['code'].' ] ';} echo strip_tags($e['message']);?>