# HG changeset patch # User Matti Hamalainen # Date 1479519070 -7200 # Node ID 755c1acae3f3a2add22c7db3f0a7f47c67a8fe7e # Parent 7135c7b18bb90310bce863f6d66a9c662eee78f9# Parent 85e268f6a822e1d59b8aea824614721c03ae63c1 Merge. diff -r 7135c7b18bb9 -r 755c1acae3f3 faptool.php --- a/faptool.php Thu Nov 17 14:20:00 2016 +0200 +++ b/faptool.php Sat Nov 19 03:31:10 2016 +0200 @@ -534,7 +534,7 @@ } $sbinfo[] = ""; - + $sbinfoStr = implode("\n", $sbinfo); // Create the destination directory if (wtMakeDir(stMakePath(FALSE, FALSE, array($pathPrefix, $compo["cpath"])), 0755) === false) @@ -585,7 +585,7 @@ } $dstFilename = stMakePath(FALSE, FALSE, array($dstPath, "fapinfo.txt")); - if (@file_put_contents($dstFilename, implode("\r\n", $sbinfo)) === FALSE) + if (@file_put_contents($dstFilename, $sbinfoStr) === FALSE) { echo "ERROR: Failed to output '".$dstFilename."'\n"; return FALSE;