From 6a3244d8df646e566500f5ecc5f6b36e9bbe4f56 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 28 Oct 2014 15:31:01 +0100 Subject: [PATCH] Do not show a summary for the MakeDirStep The user does not configure anything this step will process so there is no need to show the user a summary about something he can't control. refs #7163 --- library/Icinga/Web/Setup/MakeDirStep.php | 30 ++---------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/library/Icinga/Web/Setup/MakeDirStep.php b/library/Icinga/Web/Setup/MakeDirStep.php index d7790fd10..bbf7b0e0d 100644 --- a/library/Icinga/Web/Setup/MakeDirStep.php +++ b/library/Icinga/Web/Setup/MakeDirStep.php @@ -45,34 +45,8 @@ class MakeDirStep extends Step public function getSummary() { - $pageHtml = ''; - $pageTitle = t('Directory Creation'); - $createMsg = t('The setup will create the following directories:'); - $existsMsg = t('The setup does not need to create the following already existing directories:'); - - $toBeCreated = array_filter($this->paths, function ($p) { return false === file_exists($p); }); - if (false === empty($toBeCreated)) { - $pageHtml .= '

' . $createMsg . '

'; - - $pageHtml .= ''; - } - - $existing = array_diff($this->paths, $toBeCreated); - if (false === empty($existing)) { - $pageHtml .= '

' . $existsMsg . '

'; - - $pageHtml .= ''; - } - - return '

' . $pageTitle . '

' . $pageHtml; + // This step is usually being used for directories which are required for the installation but are + // not configured in any way by the user. So there is no need to show a summary for this step. } public function getReport()