[icinga-checkins] icinga.org: icingaweb2/feature/setup-wizard-7163: Do not report whether files were skipped because they already exist

git at icinga.org git at icinga.org
Tue Nov 4 13:53:49 CET 2014


Module: icingaweb2
Branch: feature/setup-wizard-7163
Commit: 805cb9f0796d19dc92822e8c08d56083fe0ef8b1
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=805cb9f0796d19dc92822e8c08d56083fe0ef8b1

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Tue Nov  4 13:47:37 2014 +0100

Do not report whether files were skipped because they already exist

I've removed the summary earlier as a user does not configure this in any
way so it's not necessary to show him what should had happened to files
as well.

refs #7163

---

 library/Icinga/Web/Setup/MakeDirStep.php |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/library/Icinga/Web/Setup/MakeDirStep.php b/library/Icinga/Web/Setup/MakeDirStep.php
index bbf7b0e..d588aa3 100644
--- a/library/Icinga/Web/Setup/MakeDirStep.php
+++ b/library/Icinga/Web/Setup/MakeDirStep.php
@@ -52,7 +52,6 @@ class MakeDirStep extends Step
     public function getReport()
     {
         $okMessage = t('Directory "%s" in "%s" has been successfully created.');
-        $existsMessage = t('Directory "%s" does already exist in "%s". Nothing to do.');
         $failMessage = t('Unable to create directory "%s" in "%s". An error occured:');
 
         $report = '';
@@ -64,8 +63,6 @@ class MakeDirStep extends Step
                 } else {
                     $report .= '<p>' . sprintf($okMessage, basename($path), dirname($path)) . '</p>';
                 }
-            } else {
-                $report .= '<p>' . sprintf($existsMessage, basename($path), dirname($path)) . '</p>';
             }
         }
 



More information about the icinga-checkins mailing list