From bbd1a56d58c1f52de28c7d2721a718d7fd766ddb Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 9 Aug 2015 20:51:57 +0100 Subject: [PATCH] Use the new filename --- scripts/redirects.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/redirects.php b/scripts/redirects.php index 62523c02e..1962638f4 100644 --- a/scripts/redirects.php +++ b/scripts/redirects.php @@ -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"; } } }