Use the new filename

This commit is contained in:
Oliver Davies 2015-08-09 20:51:57 +01:00
parent a3e6eef08b
commit bbd1a56d58

View file

@ -25,8 +25,8 @@ if (($handle = fopen($csv, 'r')) !== FALSE) {
$output = strtr($template, $templateData);
$filename = str_replace('/', '-', $data[0]);
file_put_contents("source/{$data[0]}.html", $output);
echo "Written to {$data[0]}.html\n";
file_put_contents("source/$filename.html", $output);
echo "Written to $filename.html\n";
}
}
}