From cd8999b2d525951c1be7c6c2ac744555d6340226 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Thu, 13 Dec 2018 17:07:49 +0100 Subject: [PATCH] Fix missing parameter in role creation from command line --- src/User/Command/CreateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User/Command/CreateController.php b/src/User/Command/CreateController.php index 7749a13..a98e98c 100644 --- a/src/User/Command/CreateController.php +++ b/src/User/Command/CreateController.php @@ -64,7 +64,7 @@ class CreateController extends Controller } else { $userRole = $auth->getRole($role); if (null === $userRole) { - $this->stdout(Yii::t('usuario', 'Role "{0}" not found. Creating it.') . "!\n", Console::FG_GREEN); + $this->stdout(Yii::t('usuario', 'Role "{0}" not found. Creating it.', [$role]) . "!\n", Console::FG_GREEN); $userRole = $auth->createRole($role); $auth->add($userRole); }