File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function Run()
4747 if (parent ::getParameterValue ('omim_api_key ' ) == '' ) {
4848 $ key_file = parent ::getParameterValue ('omim_api_key_file ' );
4949 if (file_exists ($ key_file )) {
50- $ key = file_get_contents ($ key_file );
50+ $ key = trim ( file_get_contents ($ key_file) );
5151 if ($ key ) {
5252 parent ::setParameterValue ('omim_api_key ' , $ key );
5353 } else {
@@ -199,8 +199,9 @@ function getListOfEntries($ldir)
199199 }
200200
201201 // download
202+ ftp_pasv ($ ftp , true );
202203 echo "Downloading $ file ... " ;
203- if (ftp_get ($ ftp , $ ldir .$ file , 'omim / ' .$ file , FTP_BINARY ) === FALSE ) {
204+ if (ftp_get ($ ftp , $ ldir .$ file , 'OMIM / ' .$ file , FTP_BINARY ) === FALSE ) {
204205 trigger_error ("Error in downloading $ file " );
205206 continue ;
206207 }
You can’t perform that action at this time.
0 commit comments