Skip to content
Snippets Groups Projects
Commit 566fbbed authored by git's avatar git Committed by arpeggio
Browse files

Issue #3027452 by fraserthompson: Fixed Maxmind binary downloads are corrupt since Drupal 7.61

parent 84609f06
No related branches found
No related tags found
No related merge requests found
......@@ -471,8 +471,12 @@ function smart_ip_maxmind_bin_db_update($license = '', $cron_run = FALSE, $force
return FALSE;
}
try {
if (class_exists('PharData')) {
try {
if (class_exists('Archive_Tar')) {
$p = new Archive_Tar(drupal_realpath($gz_name));
$p->extract(drupal_realpath("$path/db_tmp"));
}
elseif (class_exists('PharData')) {
$p = new PharData(drupal_realpath($gz_name));
$p->extractTo(drupal_realpath("$path/db_tmp"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment