Skip to content
Snippets Groups Projects
Commit 22741222 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #2317 from totten/master-runconcat-fix

CRM_Core_CodeGen_Util_Template - Fix warning
parents ca5bec87 d9b759a7
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,9 @@ class CRM_Core_CodeGen_Util_Template {
* @param string $outpath full path to the desired output file
*/
function runConcat($inputs, $outpath) {
unlink($outpath);
if (file_exists($outpath)) {
unlink($outpath);
}
foreach ($inputs as $infile) {
// FIXME: does not beautify. Document.
file_put_contents($outpath, $this->smarty->fetch($infile) ."\n", FILE_APPEND);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment