mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
fix confirmation message
This commit is contained in:
@@ -40,11 +40,11 @@ class UnPublishCollectionCommand extends Command
|
|||||||
$dialog = $this->getHelperSet()->get('dialog');
|
$dialog = $this->getHelperSet()->get('dialog');
|
||||||
|
|
||||||
do {
|
do {
|
||||||
$continue = mb_strtolower($dialog->ask($output, '<question> Do you want really unpublish this collection? (y/N)</question>', 'N'));
|
$continue = mb_strtolower($dialog->ask($output, sprintf("<question> Do you want really unpublish the collection %s? (y/N)</question>", $collection->get_name()), 'N'));
|
||||||
} while ( ! in_array($continue, ['y', 'n']));
|
} while ( ! in_array($continue, ['y', 'n']));
|
||||||
|
|
||||||
if ($continue !== 'y') {
|
if ($continue !== 'y') {
|
||||||
$output->writeln('Aborting !');
|
$output->writeln('<info>Aborting !</>');
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user