Skip to content

Commit 599e94e

Browse files
committed
Merge remote-tracking branch 'upstream/stable' into stable-catalyst-v1.27
2 parents 51489de + 4b692cc commit 599e94e

12 files changed

+25
-13
lines changed

amd/build/communicator.min.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/communicator.min.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/contenthubregistration.min.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/contenthubregistration.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/src/embed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ define(['jquery', 'mod_hvp/communicator'], function($, H5PEmbedCommunicator) {
9494
});
9595
});
9696

97-
});
97+
});

editor

Submodule editor updated 504 files

lang/en/hvp.php

+2
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@
499499
$string['contenthub:licenseagreementtitle'] = 'End User License Agreement (EULA)';
500500
$string['contenthub:licenseagreementdescription'] = 'Please read the following agreement before proceeding with the ';
501501
$string['contenthub:licenseagreementmaintext'] = 'TODO';
502+
$string['contenthubsearchenable'] = 'Enable shared content in H5P Hub';
503+
$string['contenthubsearchdescription'] = 'Find and download shared content from H5P Hub.';
502504
$string['contenthub:register'] = 'Register an account on the H5P Hub <a href="{$a}">here</a>';
503505
$string['contenthub:changesettings'] = 'Change account settings <a href="{$a}">here</a>';
504506
$string['contenthub:nopermissions'] = 'You do not have permission to register the site with the content hub.';

locallib.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ function hvp_add_editor_assets($id = null, $mformid = null) {
242242
$editorajaxtoken = \H5PCore::createToken('editorajax');
243243

244244
$interface = \mod_hvp\framework::instance('interface');
245-
$siteuuid = $interface->getOption('site_uuid', null);
246-
$secret = $interface->getOption('hub_secret', null);
247-
$enablecontenthub = !empty($siteuuid) && !empty($secret);
245+
$enablecontenthub = ($interface->getOption('hub_is_enabled', null) ? $interface->getOption('h5p_search_content_hub', null) : "0") === "1";
248246

249247
$settings['editor'] = array(
250248
'filesPath' => $filespathbase . 'editor',

settings.php

+8
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@
134134
''
135135
));
136136

137+
// Content Hub on by default for all users
138+
$settings->add(
139+
new admin_setting_configcheckbox(
140+
'mod_hvp/h5p_search_content_hub',
141+
get_string('contenthubsearchenable', 'hvp'),
142+
get_string('contenthubsearchdescription', 'hvp'), 1));
143+
144+
// Register on the Content Hub to allow uploading content
137145
$settings->add(new admin_setting_html(
138146
'mod_hvp/content_hub_settings_box',
139147
get_string('contenthub:settings:box', 'hvp'),

version.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
defined('MOODLE_INTERNAL') || die();
2525

26-
$plugin->version = 2023122501;
26+
$plugin->version = 2024091200;
2727
$plugin->requires = 2013051403;
2828
$plugin->cron = 0;
2929
$plugin->component = 'mod_hvp';
3030
$plugin->maturity = MATURITY_STABLE;
31-
$plugin->release = '1.26.1';
31+
$plugin->release = '1.27.0';

0 commit comments

Comments
 (0)