Skip to content
Snippets Groups Projects

Resolve #3238915 "Refactor if feasible"

3 files
+ 17
1
Compare changes
  • Side-by-side
  • Inline
Files
3
  • c9c2ee18
    Issue #3163123 by Spokje, anmolgoyal74, andypost, guilhermevp, Niklan,... · c9c2ee18
    Dave Long authored
    Issue #3163123 by Spokje, anmolgoyal74, andypost, guilhermevp, Niklan, Hardik_Patel_12, quietone, larowlan: Error: Class 'ZipArchive' not found in Drupal\Core\Archiver\Zip->__construct() (line 30 of core/lib/Drupal/Core/Archiver/Zip.php)
@@ -1389,3 +1389,13 @@ function system_file_download($uri) {
}
}
}
/**
* Implements hook_archiver_info_alter().
*/
function system_archiver_info_alter(&$info) {
if (!class_exists(\ZipArchive::class)) {
// PHP Zip extension is missing.
unset($info['Zip']);
}
}
Loading