mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正 模板引擎驱动类的config方法
This commit is contained in:
@@ -141,7 +141,11 @@ class Php
|
||||
*/
|
||||
public function config($name, $value = null)
|
||||
{
|
||||
|
||||
if (is_array($name)) {
|
||||
$this->config = array_merge($this->config, $name);
|
||||
} else {
|
||||
$this->config[$name] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -140,8 +140,10 @@ class Think
|
||||
{
|
||||
if (is_array($name)) {
|
||||
$this->template->config($name);
|
||||
$this->config = array_merge($this->config, $name);
|
||||
} else {
|
||||
$this->template->$name = $value;
|
||||
$this->config[$name] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user