Skip to content

Commit 68e4add

Browse files
Merge pull request #65 from catalyst/upstream-merge
Upstream merge
2 parents 89a835e + 3c3022e commit 68e4add

9 files changed

+22
-10
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.

editor

Submodule editor updated 504 files

lang/en/hvp.php

+2
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@
500500
$string['contenthub:licenseagreementtitle'] = 'End User License Agreement (EULA)';
501501
$string['contenthub:licenseagreementdescription'] = 'Please read the following agreement before proceeding with the ';
502502
$string['contenthub:licenseagreementmaintext'] = 'TODO';
503+
$string['contenthubsearchenable'] = 'Enable shared content in H5P Hub';
504+
$string['contenthubsearchdescription'] = 'Find and download shared content from H5P Hub.';
503505
$string['contenthub:register'] = 'Register an account on the H5P Hub <a href="{$a}">here</a>';
504506
$string['contenthub:changesettings'] = 'Change account settings <a href="{$a}">here</a>';
505507
$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
@@ -247,9 +247,7 @@ function hvp_add_editor_assets($id = null, $mformid = null) {
247247
$editorajaxtoken = \H5PCore::createToken('editorajax');
248248

249249
$interface = \mod_hvp\framework::instance('interface');
250-
$siteuuid = $interface->getOption('site_uuid', null);
251-
$secret = $interface->getOption('hub_secret', null);
252-
$enablecontenthub = !empty($siteuuid) && !empty($secret);
250+
$enablecontenthub = ($interface->getOption('hub_is_enabled', null) ? $interface->getOption('h5p_search_content_hub', null) : "0") === "1";
253251

254252
$settings['editor'] = array(
255253
'filesPath' => $filespathbase . 'editor',

settings.php

+8
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@
136136
''
137137
));
138138

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

version.php

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

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

26-
$plugin->version = 2023122503;
26+
$plugin->version = 2024112100;
2727
$plugin->requires = 2013051403;
2828
$plugin->cron = 0;
2929
$plugin->component = 'mod_hvp';
3030
$plugin->maturity = MATURITY_STABLE;
31-
$plugin->release = '1.26.1';
3231
$plugin->supported = [400, 404];
32+
$plugin->release = '1.27.1';

0 commit comments

Comments
 (0)