Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Utils\Config preserves document type between reloads. Fixes #2777
Browse files Browse the repository at this point in the history
  • Loading branch information
msjyoo committed Mar 21, 2015
1 parent 6bf30c1 commit 91a26c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pocketmine/utils/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ public function __construct($file, $type = Config::DETECT, $default = [], &$corr
public function reload(){
$this->config = [];
$this->correct = false;
unset($this->type);
$this->load($this->file);
$this->load($this->file, $this->type);
}

/**
Expand Down

0 comments on commit 91a26c1

Please sign in to comment.