改进Request类 filter属性的初始化

This commit is contained in:
thinkphp
2016-08-17 12:06:04 +08:00
parent f865efec65
commit e2e77b911d

View File

@@ -128,8 +128,10 @@ class Request
$this->$name = $item; $this->$name = $item;
} }
} }
if (is_null($this->filter)) {
$this->filter = Config::get('default_filter'); $this->filter = Config::get('default_filter');
} }
}
public function __call($method, $args) public function __call($method, $args)
{ {