Maintenance: Plugin: remove H5P import tool elements from course copy and backup to avoid errors it will be restored when the plugin will be finalised and backup of the H5P tools will be available -refs BT#20976

pull/4964/head
NicoDucou 3 years ago
parent 6a3e0898c5
commit 6edd07a397
  1. 2
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php
  2. 2
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php

@ -250,7 +250,7 @@ class CourseBuilder
$this->isXapiEnabled = $xapiEnabled;
}
$h5pEnabled = \H5pImportPlugin::create()->isEnabled();
$h5pEnabled = false; // \H5pImportPlugin::create()->isEnabled();
if ($h5pEnabled) {
$this->tools_to_build[] = 'h5p_tool';
$this->toolToName['h5p_tool'] = RESOURCE_H5P_TOOL;

@ -161,7 +161,7 @@ class CourseRestorer
$teacher_list = CourseManager::get_teacher_list_from_course_code($course_info['code']);
$this->first_teacher_id = api_get_user_id();
$this->isXapiEnabled = \XApiPlugin::create()->isEnabled();
$this->isH5pEnabled = \H5pImportPlugin::create()->isEnabled();
$this->isH5pEnabled = false; //\H5pImportPlugin::create()->isEnabled();
if (!empty($teacher_list)) {
foreach ($teacher_list as $teacher) {

Loading…
Cancel
Save