Skip to content
Snippets Groups Projects
Commit 9b445278 authored by Thomas Marstrander's avatar Thomas Marstrander
Browse files

Fix CI problems

Set correct version
parent dd9fa92c
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,8 @@ php: ...@@ -12,8 +12,8 @@ php:
env: env:
global: global:
- MOODLE_BRANCH=MOODLE_30_STABLE - MOODLE_BRANCH=MOODLE_36_STABLE
- IGNORE_PATHS=lang - IGNORE_PATHS=lang,editor,lirbary,reporting
matrix: matrix:
- DB=pgsql - DB=pgsql
- DB=mysqli - DB=mysqli
......
...@@ -851,8 +851,6 @@ class file_storage implements \H5PFileStorage { ...@@ -851,8 +851,6 @@ class file_storage implements \H5PFileStorage {
*/ */
// @codingStandardsIgnoreLine // @codingStandardsIgnoreLine
public function getUpgradeScript($machinename, $majorversion, $minorversion) { public function getUpgradeScript($machinename, $majorversion, $minorversion) {
global $CFG;
$context = \context_system::instance(); $context = \context_system::instance();
$fs = get_file_storage(); $fs = get_file_storage();
$area = 'libraries'; $area = 'libraries';
......
...@@ -370,7 +370,9 @@ class mod_hvp_mod_form extends moodleform_mod { ...@@ -370,7 +370,9 @@ class mod_hvp_mod_form extends moodleform_mod {
// Fix for legacy content upload to work. // Fix for legacy content upload to work.
// Fetch title from h5p.json or use a default string if not available. // Fetch title from h5p.json or use a default string if not available.
$h5pvalidator = \mod_hvp\framework::instance('validator'); $h5pvalidator = \mod_hvp\framework::instance('validator');
$data->metadata->title = empty($h5pvalidator->h5pC->mainJsonData['title']) ? 'Uploaded Content' : $h5pvalidator->h5pC->mainJsonData['title']; $data->metadata->title = empty($h5pvalidator->h5pC->mainJsonData['title'])
? 'Uploaded Content'
: $h5pvalidator->h5pC->mainJsonData['title'];
} }
$data->name = $data->metadata->title; // Sort of a hack, $data->name = $data->metadata->title; // Sort of a hack,
// but there is no JavaScript that sets the value when there is no editor... // but there is no JavaScript that sets the value when there is no editor...
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->version = 2019023000; $plugin->version = 2019022000;
$plugin->requires = 2013051403; $plugin->requires = 2013051403;
$plugin->cron = 0; $plugin->cron = 0;
$plugin->component = 'mod_hvp'; $plugin->component = 'mod_hvp';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment