Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes error h5presizer.js not found for core h5p #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ public function filter($text, array $options = array()) {
$h5pparams = [
'url' => $fileurl,
'preventredirect' => true,
'component' => '', //$component,
'component' => 'mod_h5pactivity', //$component,
];


// Not sure if this is needed. It is not part of the url in embed code.
$optparams = ['frame', 'export', 'embed', 'copyright'];
foreach ($optparams as $optparam) {
if (!empty($config->$optparam)) {
Expand Down
2 changes: 1 addition & 1 deletion templates/embed-h5p.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
allowfullscreen="allowfullscreen" class="h5p-player w-100 border-0">
{{embedurl}}
</iframe>
<script src="{{wwwroot}}/mod/hvp/library/js/h5p-resizer.js" charset="UTF-8"></script>
<script src="{{wwwroot}}/h5p/h5plib/v124/joubel/core/js/h5p-resizer.js" charset="UTF-8"></script>
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2021062200;
$plugin->requires = 2019052000;
$plugin->version = 2023090100;
$plugin->requires = 2022111800;
$plugin->component = 'filter_h5p';
$plugin->release = '1.2 (Build: 2021062200)';
$plugin->release = '1.3 (Build: 2023090100)';
$plugin->maturity = MATURITY_STABLE;