diff --git a/src/controllers/ServerController.php b/src/controllers/ServerController.php index c42efe72..b0b0f1f6 100644 --- a/src/controllers/ServerController.php +++ b/src/controllers/ServerController.php @@ -98,7 +98,7 @@ public function actions() ], 'enable-vnc' => [ 'class' => 'hipanel\actions\ViewAction', - 'data' => function ($action, $id) { + 'data' => function ($action) { $model = $action->getModel(); $model->checkOperable(); $model->vnc = $action->controller->getVNCInfo($model, true);