Skip to content

Commit

Permalink
fixed problem with ViewAction data closure
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 16, 2015
1 parent 83c9669 commit cadd45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cadd45b

Please sign in to comment.