BanList: rename poorly-named parameter

This commit is contained in:
Dylan K. Taylor 2018-06-06 18:18:06 +01:00
parent 1a21041d00
commit 2b5e6b790f

View File

@ -166,13 +166,13 @@ class BanList{
}
/**
* @param bool $flag
* @param bool $writeHeader
*/
public function save(bool $flag = true){
public function save(bool $writeHeader = true){
$this->removeExpired();
$fp = @fopen($this->file, "w");
if(is_resource($fp)){
if($flag){
if($writeHeader){
fwrite($fp, "# Updated " . strftime("%x %H:%M", time()) . " by " . Server::getInstance()->getName() . " " . Server::getInstance()->getPocketMineVersion() . "\n");
fwrite($fp, "# victim name | ban date | banned by | banned until | reason\n\n");
}