From 7e8c963c4de129c44008b1b459fe7085d3a069f6 Mon Sep 17 00:00:00 2001 From: odain Date: Thu, 8 Feb 2024 16:52:32 +0100 Subject: [PATCH] fix restore info logging --- datamodels/2.x/itop-backup/dbrestore.class.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datamodels/2.x/itop-backup/dbrestore.class.inc.php b/datamodels/2.x/itop-backup/dbrestore.class.inc.php index 669d04bbc..448252ec5 100644 --- a/datamodels/2.x/itop-backup/dbrestore.class.inc.php +++ b/datamodels/2.x/itop-backup/dbrestore.class.inc.php @@ -3,7 +3,7 @@ // // This file is part of iTop. // -// iTop is free software; you can redistribute it and/or modify +// iTop is free software; you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. @@ -34,7 +34,7 @@ class DBRestore extends DBBackup protected function LogInfo($sMsg) { - //IssueLog::Info('non juste info: '.$sMsg); + IssueLog::Info('non juste info: '.$sMsg); } protected function LogError($sMsg) @@ -91,7 +91,7 @@ class DBRestore extends DBBackup { $this->LogError("mysql said: $sLine"); } - if (count($aOutput) == 1) + if (count($aOutput) == 1) { $sMoreInfo = trim($aOutput[0]); } @@ -187,7 +187,7 @@ class DBRestore extends DBBackup @chmod($sConfigFile, 0770); // Allow overwriting the file rename($sDataDir.'/config-itop.php', $sConfigFile); @chmod($sConfigFile, 0440); // Read-only - + $aExtraFiles = $this->ListExtraFiles($sDataDir); foreach($aExtraFiles as $sSourceFilePath => $sDestinationFilePath) { SetupUtils::builddir(dirname($sDestinationFilePath));