Skip to content
Snippets Groups Projects

Issue #3311602: D10 Compatibility

5 files
+ 14
16
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -130,7 +130,7 @@ class ConfigPartialExportCommands extends DrushCommands {
if (!in_array($label, $choices)) {
$msg = dt('Error !target not found as a configuration target.',
['!target' => $label]);
return drush_set_error('NO_CONFIG_DEST', $msg);
throw new \Exception($msg);
}
$destination_dir = config_get_config_directory($label);
@@ -286,6 +286,7 @@ class ConfigPartialExportCommands extends DrushCommands {
$rows[] = array_pad(['[0]', ':', 'Cancel'], $array_pad + 2, '');
$selection_number = 0;
$selection_list = [];
foreach ($options as $key => $option) {
if ((substr($key, 0, 3) == '-- ') && (substr($key, -3) == ' --')) {
$rows[] = array_pad(['', '', $option], $array_pad + 2, '');
@@ -354,7 +355,7 @@ class ConfigPartialExportCommands extends DrushCommands {
$output = str_replace("\r\n", PHP_EOL, $output);
}
drush_print(rtrim($output), 0, $handle);
Drush::output()->writeln(rtrim($output), 0, $handle);
return $tbl;
}
Loading