🎨 Added .env var for file name in extract.php

This commit is contained in:
Florian SYLVAIN
2021-11-12 14:58:31 +01:00
parent b7a0bc05fc
commit 344493832e
+1 -1
View File
@@ -7,7 +7,7 @@ require_once('../class/dotEnv.php');
(new DotEnv(__DIR__ . '/../.env'))->load();
if (($handle = fopen("2021-09-15-theses.csv", "r")) !== FALSE) {
if (($handle = fopen(getenv('FILE'), "r")) !== FALSE) {
$pdo_obj = new conf();
$pdo = $pdo_obj->getPDO();