From 6fdb2f9fff8a024f7b7ce223b6edcf836f3609af Mon Sep 17 00:00:00 2001 From: Marsender Date: Thu, 10 Oct 2013 07:33:25 +0100 Subject: [PATCH] Set distinct file names --- resources/epub-loader/app/action_csv_export.php | 6 +++--- resources/epub-loader/app/action_db_load.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/epub-loader/app/action_csv_export.php b/resources/epub-loader/app/action_csv_export.php index b967bec..693feef 100644 --- a/resources/epub-loader/app/action_csv_export.php +++ b/resources/epub-loader/app/action_csv_export.php @@ -15,10 +15,10 @@ try { // Add the epub files into the export file if (!empty($dbConfig['epub_path'])) { $fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub'); - foreach ($fileList as $fileName) { - $error = $export->AddEpub($fileName); + foreach ($fileList as $file) { + $error = $export->AddEpub($file); if (!empty($error)) { - $gErrorArray[$fileName] = $error; + $gErrorArray[$file] = $error; } } } diff --git a/resources/epub-loader/app/action_db_load.php b/resources/epub-loader/app/action_db_load.php index 17a5b83..ad21afc 100644 --- a/resources/epub-loader/app/action_db_load.php +++ b/resources/epub-loader/app/action_db_load.php @@ -15,10 +15,10 @@ try { // Add the epub files into the database if (!empty($dbConfig['epub_path'])) { $fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub'); - foreach ($fileList as $fileName) { - $error = $db->AddEpub($fileName); + foreach ($fileList as $file) { + $error = $db->AddEpub($file); if (!empty($error)) { - $gErrorArray[$fileName] = $error; + $gErrorArray[$file] = $error; } } }