Commit 7c63c6db by ivokund

Update Action.php

Fixed typo in runWithParams
parent 314cc8ab
...@@ -85,8 +85,9 @@ class Action extends Component ...@@ -85,8 +85,9 @@ class Action extends Component
Yii::$app->requestedParams = $args; Yii::$app->requestedParams = $args;
} }
if ($this->beforeRun()) { if ($this->beforeRun()) {
call_user_func_array([$this, 'run'], $args); $result = call_user_func_array([$this, 'run'], $args);
$this->afterRun(); $this->afterRun();
return $result;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment