From 45581edddfd61485669a9566a978bc80fb0b5d96 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 7 Jan 2014 21:13:35 -0800 Subject: [PATCH] CRM/Core/CodeGen/Util/Template - Fix comment alignment in generated SQL The missing newlines were causing SQL loading to crash in Joomla. --- CRM/Core/CodeGen/Util/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/CodeGen/Util/Template.php b/CRM/Core/CodeGen/Util/Template.php index 6f36544421..e151496015 100644 --- a/CRM/Core/CodeGen/Util/Template.php +++ b/CRM/Core/CodeGen/Util/Template.php @@ -56,7 +56,7 @@ class CRM_Core_CodeGen_Util_Template { unlink($outpath); foreach ($inputs as $infile) { // FIXME: does not beautify. Document. - file_put_contents($outpath, $this->smarty->fetch($infile), FILE_APPEND); + file_put_contents($outpath, $this->smarty->fetch($infile) ."\n", FILE_APPEND); } } -- 2.25.1