This seems to break things

This commit is contained in:
Oliver Davies 2015-08-07 07:01:37 +01:00
parent c3d6ad717b
commit 12a53e9f73

View file

@ -17,9 +17,9 @@ $row = 1;
if (($handle = fopen($filename, 'r')) !== FALSE) { if (($handle = fopen($filename, 'r')) !== FALSE) {
while (($data = fgetcsv($handle, filesize($filename))) !== FALSE) { while (($data = fgetcsv($handle, filesize($filename))) !== FALSE) {
if ($row === 1) { # if ($row == 1) {
continue; # continue;
} # }
$templateData = [ $templateData = [
'%DESTINATION%' => $data[1], '%DESTINATION%' => $data[1],
@ -29,6 +29,7 @@ if (($handle = fopen($filename, 'r')) !== FALSE) {
file_put_contents("source/{$data[0]}.html", $output); file_put_contents("source/{$data[0]}.html", $output);
echo "Written to {$data[0]}.html\n"; echo "Written to {$data[0]}.html\n";
$row++; $row++;
} }
} }