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

Update submodules and fix linting error

parent 9b445278
Branches
No related tags found
No related merge requests found
Subproject commit 6364550f23f73584140e591bd2cfcf47d18b527a
Subproject commit b87c9b8083f85b97adf2cb2d9cb83e1a959dc273
Subproject commit 415e1010646df7a99a9ed1cddcf009e8beb48a29
Subproject commit 7ee0c3372b939ecabb23c40fd99f81c46f971333
......@@ -370,9 +370,7 @@ class mod_hvp_mod_form extends moodleform_mod {
// Fix for legacy content upload to work.
// Fetch title from h5p.json or use a default string if not available.
$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,
// but there is no JavaScript that sets the value when there is no editor...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment