From 1c081ea25cc9e27a646d71277af8e22b9b36c8a3 Mon Sep 17 00:00:00 2001 From: aynsix Date: Fri, 28 Feb 2020 16:54:49 +0300 Subject: [PATCH] fix confirmation message --- .../Phrasea/Command/Collection/UnPublishCollectionCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Command/Collection/UnPublishCollectionCommand.php b/lib/Alchemy/Phrasea/Command/Collection/UnPublishCollectionCommand.php index 70d857e5d1..ef0fc9dae5 100644 --- a/lib/Alchemy/Phrasea/Command/Collection/UnPublishCollectionCommand.php +++ b/lib/Alchemy/Phrasea/Command/Collection/UnPublishCollectionCommand.php @@ -40,11 +40,11 @@ class UnPublishCollectionCommand extends Command $dialog = $this->getHelperSet()->get('dialog'); do { - $continue = mb_strtolower($dialog->ask($output, ' Do you want really unpublish this collection? (y/N)', 'N')); + $continue = mb_strtolower($dialog->ask($output, sprintf(" Do you want really unpublish the collection %s? (y/N)", $collection->get_name()), 'N')); } while ( ! in_array($continue, ['y', 'n'])); if ($continue !== 'y') { - $output->writeln('Aborting !'); + $output->writeln('Aborting !'); return; }