From 6dc33791a7fc8a2f8383ca7bad264e112f80b4e9 Mon Sep 17 00:00:00 2001 From: Michael Yoo Date: Thu, 22 Aug 2013 19:40:20 +0930 Subject: [PATCH] Reload Bugfix --- src/utils/Config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/Config.php b/src/utils/Config.php index 748cd8848..9e8bc53bd 100644 --- a/src/utils/Config.php +++ b/src/utils/Config.php @@ -61,8 +61,12 @@ class Config{ } public function reload() - { - $this->load($this->file, $this->type, array()); + { + unset($this->config); + unset($this->correct); + unset($this->type); + $this->load($this->file); + $correct = $this->check(); } public function load($file, $type = CONFIG_DETECT, $default = array()){