From 7f15f4a35e5b50336e95acee46c0d0dddd69d295 Mon Sep 17 00:00:00 2001 From: 7IN0SAN9 Date: Fri, 18 Dec 2015 01:58:21 +0800 Subject: [PATCH] =?UTF-8?q?Config::reset=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/config.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/think/config.php b/library/think/config.php index 16ae684f..a0472fd6 100644 --- a/library/think/config.php +++ b/library/think/config.php @@ -129,4 +129,9 @@ class Config } } + // 重置配置参数 + public static function reset($name, $value = null, $range = '') + { + self::$config = []; + } }