From 54f058de3efea0e37860630f7401a2d319ee545f Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Thu, 22 Aug 2013 19:30:27 +0930 Subject: [PATCH] Config Reload --- src/utils/Config.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/Config.php b/src/utils/Config.php index 223f2ea36..748cd8848 100644 --- a/src/utils/Config.php +++ b/src/utils/Config.php @@ -60,6 +60,11 @@ class Config{ $correct = $this->check(); } + public function reload() + { + $this->load($this->file, $this->type, array()); + } + public function load($file, $type = CONFIG_DETECT, $default = array()){ $this->correct = true; $this->type = (int) $type; @@ -238,4 +243,4 @@ class Config{ } } -} \ No newline at end of file +}