Fixed /reload

This commit is contained in:
Shoghi Cervantes 2014-06-14 18:46:40 +02:00
parent 392f0110bb
commit 694ccf2bc5
2 changed files with 5 additions and 5 deletions

View File

@ -174,7 +174,7 @@ abstract class PluginBase implements Plugin{
*
* @param string $filename
*
* @return \SplFileObject Resource data, or null
* @return resource Resource data, or null
*/
public function getResource($filename){
$filename = rtrim(str_replace("\\", "/", $filename), "/");

View File

@ -39,11 +39,11 @@ class Config{
const ENUMERATION = Config::ENUM;
/** @var array */
private $config;
private $config = [];
/** @var string */
private $file;
/** @var boolean */
private $correct;
private $correct = false;
/** @var integer */
private $type = Config::DETECT;
@ -80,8 +80,8 @@ class Config{
* Removes all the changes in memory and loads the file again
*/
public function reload(){
unset($this->config);
unset($this->correct);
$this->config = [];
$this->correct = false;
unset($this->type);
$this->load($this->file);
}