From c1ba6feaec7029e9db37df0e15d648e827522d00 Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Mon, 2 Aug 2021 14:00:54 +0200
Subject: [PATCH] write project config as pretty print

---
 public_html/deployment/classes/project.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index 2ab8c0a4..1667747f 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -2318,7 +2318,7 @@ class project extends base {
             $sBakFile = $this->_getConfigFile($sId) . ".ok";
             copy($sCfgFile, $sBakFile);
 
-            $bReturn = file_put_contents($sCfgFile, json_encode($aData));
+            $bReturn = file_put_contents($sCfgFile, json_encode($aData, JSON_PRETTY_PRINT));
             $this->_aPrjConfig = json_decode(file_get_contents($this->_getConfigFile($sId)), true);
         }
         // save in ldap
-- 
GitLab