Browse Source

!263 修改 后台-》常规配置-》管理配置-》系统配置 的 初始化方法
Merge pull request !263 from 小鸡炖蘑菇/master

Karson 5 years ago
parent
commit
c4d676aa8c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/admin/controller/general/Config.php

+ 2 - 1
application/admin/controller/general/Config.php

@@ -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"));