File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ function Run()
101
101
$ total = count ($ entries );
102
102
foreach ($ entries AS $ omim_id => $ type ) {
103
103
echo "processing " .(++$ i )." of $ total - omim# " ;
104
- $ download_file = "compress.zlib:// " .$ ldir .$ omim_id .".json.gz " ;
104
+ $ download_file = $ ldir .$ omim_id .".json.gz " ;
105
+ $ gzfile = "compress.zlib:// $ download_file " ;
105
106
// download if the file doesn't exist or we are told to
106
107
if (!file_exists ($ download_file ) || parent ::getParameterValue ('download ' ) == true ) {
107
108
// download using the api
@@ -114,7 +115,7 @@ function Run()
114
115
}
115
116
116
117
// load entry, parse and write to file
117
- $ entry = json_decode (file_get_contents ($ download_file ), true );
118
+ $ entry = json_decode (file_get_contents ($ gzfile ), true );
118
119
$ omim_id = trim ((string )$ entry ["omim " ]["entryList " ][0 ]["entry " ]['mimNumber ' ]);
119
120
echo $ omim_id ;
120
121
$ this ->ParseEntry ($ entry ,$ type );
You can’t perform that action at this time.
0 commit comments