Set distinct file names
This commit is contained in:
parent
3907384e11
commit
6fdb2f9fff
|
@ -15,10 +15,10 @@ try {
|
||||||
// Add the epub files into the export file
|
// Add the epub files into the export file
|
||||||
if (!empty($dbConfig['epub_path'])) {
|
if (!empty($dbConfig['epub_path'])) {
|
||||||
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
|
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
|
||||||
foreach ($fileList as $fileName) {
|
foreach ($fileList as $file) {
|
||||||
$error = $export->AddEpub($fileName);
|
$error = $export->AddEpub($file);
|
||||||
if (!empty($error)) {
|
if (!empty($error)) {
|
||||||
$gErrorArray[$fileName] = $error;
|
$gErrorArray[$file] = $error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,10 @@ try {
|
||||||
// Add the epub files into the database
|
// Add the epub files into the database
|
||||||
if (!empty($dbConfig['epub_path'])) {
|
if (!empty($dbConfig['epub_path'])) {
|
||||||
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
|
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
|
||||||
foreach ($fileList as $fileName) {
|
foreach ($fileList as $file) {
|
||||||
$error = $db->AddEpub($fileName);
|
$error = $db->AddEpub($file);
|
||||||
if (!empty($error)) {
|
if (!empty($error)) {
|
||||||
$gErrorArray[$fileName] = $error;
|
$gErrorArray[$file] = $error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue