Skip to content

Commit

Permalink
修复禁用插件的情况下卸载不干净
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyan74 committed Mar 12, 2020
1 parent ec702fe commit cb6f530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/modules/common/controllers/AddonsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function actionUnInstall()
$name = Yii::$app->request->get('name');

// 删除数据库
if ($model = Yii::$app->services->addons->findByName($name)) {
if ($model = Addons::findOne(['name' => $name])) {
$model->delete();
}

Expand Down

0 comments on commit cb6f530

Please sign in to comment.