Example warning: "PHP Warning: unlink(../sql/civicrm_data.da_DK.mysql): No such file or directory in /home/webeditor/jenkins-node/workspace/buildkit-demos.civicrm.org/build/d7-sandbox/sites/all/modules/civicrm/CRM/Core/CodeGen/Util/Template.php on line 56"
* @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);