Merge pull request #1706 from mtmail/warn-if-no-tiger-files-found

print warning if no Tiger files found
This commit is contained in:
Sarah Hoffmann 2020-03-06 22:55:37 +01:00 committed by GitHub
commit ce5870223a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,8 +417,10 @@ class SetupFunctions
$aFilenames = glob(CONST_Tiger_Data_Path.'/*.sql');
info('Found '.count($aFilenames).' SQL files in path '.CONST_Tiger_Data_Path);
if (empty($aFilenames)) return;
if (empty($aFilenames)) {
warn('Tiger data import selected but no files found in path '.CONST_Tiger_Data_Path);
return;
}
$sTemplate = file_get_contents(CONST_BasePath.'/sql/tiger_import_start.sql');
$sTemplate = $this->replaceSqlPatterns($sTemplate);