CRM/Core/CodeGen/Util/Template - Fix comment alignment in generated SQL
authorTim Otten <totten@civicrm.org>
Wed, 8 Jan 2014 05:13:35 +0000 (21:13 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 8 Jan 2014 05:13:35 +0000 (21:13 -0800)
The missing newlines were causing SQL loading to crash in Joomla.

CRM/Core/CodeGen/Util/Template.php

index 6f3654442175e485d98ccff438486ece24616196..e151496015980b9a52cf1b76589f387109b9606a 100644 (file)
@@ -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);
     }
   }