From 9bfb27e10a094d6252ef1096679acf3416619084 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 17 Apr 2015 11:57:00 +0300 Subject: [PATCH] layout pretty print --- application/Espo/Core/Utils/Layout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Core/Utils/Layout.php b/application/Espo/Core/Utils/Layout.php index 4984153bee..df9bc16440 100644 --- a/application/Espo/Core/Utils/Layout.php +++ b/application/Espo/Core/Utils/Layout.php @@ -136,7 +136,7 @@ class Layout } $layoutPath = $this->getLayoutPath($controllerName, true); - $data = Json::encode($layoutData); + $data = Json::encode($layoutData, \JSON_PRETTY_PRINT); $result &= $this->getFileManager()->putContents(array($layoutPath, $layoutName.'.json'), $data); }