Commit 573b7be8 authored by jonnybradley's avatar jonnybradley

[bp/r66019][FIX] h5p: H5P requires the zip php extension

parent eccc581a
......@@ -25,8 +25,15 @@ class H5PLib
private static $settings = null;
/**
* H5PLib constructor.
* @throws Exception
*/
function __construct()
{
if (! extension_loaded('zip')) {
throw new Exception(tr('PHP Zip extension not found, reqiuired for Feature H5P'));
}
$this->H5PTiki = \H5P_H5PTiki::get_h5p_instance('interface');
}
......
......@@ -15,7 +15,7 @@ function prefs_h5p_list($partial = false)
'dependencies' => [
'feature_file_galleries',
],
'extensions' => ['curl'],
'extensions' => ['curl', 'zip'],
'type' => 'flag',
'default' => 'n',
'filter' => 'alpha',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment