Fixes translation text in ApproveUserForm

This commit is contained in:
buddh4 2020-10-15 18:24:32 +02:00
parent 8368d721c2
commit b0b44bad94

View File

@ -55,7 +55,7 @@ class ApproveUserForm extends \yii\base\Model
}
if($this->user->status !== User::STATUS_NEED_APPROVAL) {
throw new NotFoundHttpException(Yii::t('AdminModule.controllers_ApprovalController', 'Invalid user state: '.$this->user->status));
throw new NotFoundHttpException(Yii::t('AdminModule.controllers_ApprovalController', 'Invalid user state: {state}', ['state' => $this->user->status]));
}
if(!($this->admin instanceof User)) {