FTP upload file list incorrectly includes licence.txt
| Project: | User Import |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
On the User Import page, Import tab, FTP upload option files list includes the 'license.txt' file as a possible upload file. This file should be excluded from the list as it is part of the module package and not a CSV file. Excluding the file can be done by adding the file name to line 1791 of user_import.module. Sorry, but I'm not to the level where I can create a patch so will leave that to those more skilled. Below is a modified version of line 1791 that has been tested and works:
if ($file != '.' && $file != '..' && $file != '.DS_Store' && $file != 'CVS' && $file != 'LICENSE.txt' && $file != 'README.txt' && $file != 'UPDATES.txt' && $file != 'user_import.module' && $file != 'user_import.mysql' && $file != 'user_import.install' && $file != 'user_import.info') $filenames[] = $file;
Doug
