HTML/FlexyFramework/Generator.php
authorAlan Knowles <alan@roojs.com>
Thu, 20 Feb 2014 06:50:30 +0000 (14:50 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 20 Feb 2014 06:50:30 +0000 (14:50 +0800)
HTML/FlexyFramework/Generator.php

index 19b31df..7a12dd0 100644 (file)
@@ -254,8 +254,11 @@ class HTML_FlexyFramework_Generator extends DB_DataObject_Generator
         if (count($out)) {
             $ff->debug("Writing merged Links file : $iniLinksCache \n");
 
+            $out  = implode("\n", $out);
+            
+            
             file_put_contents($iniCacheTmp. '.links.ini', implode("\n", $out));
-            if (file_exists($iniLinksCache)) {
+            if (file_exists($iniLinksCache)) {                
                 unlink($iniLinksCache);
             }
             rename($iniCacheTmp. '.links.ini', $iniLinksCache);