Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2017-09-10 19:01:00 +0300
committerStefan Giehl <stefan@piwik.org>2017-09-11 16:24:42 +0300
commite67b23f64d5e302580fa661516f24beb910cc615 (patch)
treef615c1a808fd7933f67cdb28ef04f892d6980fd9 /plugins/Diagnostics
parent61950f7cae32d6420a509eb11e300d12d06ce2e2 (diff)
prevent output from beeing cut off
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r--plugins/Diagnostics/Commands/Run.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Diagnostics/Commands/Run.php b/plugins/Diagnostics/Commands/Run.php
index 1932faae51..24c3be51fa 100644
--- a/plugins/Diagnostics/Commands/Run.php
+++ b/plugins/Diagnostics/Commands/Run.php
@@ -47,13 +47,13 @@ class Run extends ConsoleCommand
}
if (count($items) === 1) {
- $output->writeln($result->getLabel() . ': ' . $this->formatItem($items[0]), OutputInterface::OUTPUT_PLAIN);
+ $output->writeln($result->getLabel() . ': ' . $this->formatItem($items[0]), OutputInterface::OUTPUT_NORMAL);
continue;
}
$output->writeln($result->getLabel() . ':');
foreach ($items as $item) {
- $output->writeln("\t- " . $this->formatItem($item), OutputInterface::OUTPUT_PLAIN);
+ $output->writeln("\t- " . $this->formatItem($item), OutputInterface::OUTPUT_NORMAL);
}
}
@@ -82,7 +82,7 @@ class Run extends ConsoleCommand
'<%s>%s %s</%s>',
$tag,
strtoupper($item->getStatus()),
- preg_replace('/\<br\s*\/?\>/i', "\n", $item->getComment()),
+ preg_replace('%</?[a-z][a-z0-9]*[^<>]*>%sim', '', preg_replace('/\<br\s*\/?\>/i', "\n", $item->getComment())),
$tag
);
}