From 12a53e9f73097de2f0d278fbf6f1ee94adb0e4bc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 7 Aug 2015 07:01:37 +0100 Subject: [PATCH] This seems to break things --- scripts/redirects.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/redirects.php b/scripts/redirects.php index 540b73235..08ff7a476 100644 --- a/scripts/redirects.php +++ b/scripts/redirects.php @@ -17,9 +17,9 @@ $row = 1; if (($handle = fopen($filename, 'r')) !== FALSE) { while (($data = fgetcsv($handle, filesize($filename))) !== FALSE) { - if ($row === 1) { - continue; - } +# if ($row == 1) { +# continue; +# } $templateData = [ '%DESTINATION%' => $data[1], @@ -29,6 +29,7 @@ if (($handle = fopen($filename, 'r')) !== FALSE) { file_put_contents("source/{$data[0]}.html", $output); echo "Written to {$data[0]}.html\n"; + $row++; } }