Use the new filename
This commit is contained in:
parent
a3e6eef08b
commit
bbd1a56d58
|
@ -25,8 +25,8 @@ if (($handle = fopen($csv, 'r')) !== FALSE) {
|
||||||
$output = strtr($template, $templateData);
|
$output = strtr($template, $templateData);
|
||||||
|
|
||||||
$filename = str_replace('/', '-', $data[0]);
|
$filename = str_replace('/', '-', $data[0]);
|
||||||
file_put_contents("source/{$data[0]}.html", $output);
|
file_put_contents("source/$filename.html", $output);
|
||||||
echo "Written to {$data[0]}.html\n";
|
echo "Written to $filename.html\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue