作者 Karson
提交者 Gitee

!263 修改 后台-》常规配置-》管理配置-》系统配置 的 初始化方法

Merge pull request !263 from 小鸡炖蘑菇/master
... ... @@ -28,7 +28,8 @@ class Config extends Backend
public function _initialize()
{
parent::_initialize();
$this->model = model('Config');
// $this->model = model('Config');
$this->model = new ConfigModel;
ConfigModel::event('before_write', function ($row) {
if (isset($row['name']) && $row['name'] == 'name' && preg_match("/fast" . "admin/i", $row['value'])) {
throw new Exception(__("Site name incorrect"));
... ...