Skip to content

Commit

Permalink
MED-114: Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed May 21, 2024
1 parent 32e9569 commit 8d0cd2f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lang/en/tool_mediatime.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
$string['privacy:metadata:tool_mediatime:usermodified'] = 'User modified';
$string['resourcename'] = 'Resource name';
$string['resourcename_help'] = 'The name for a resource is used internally in the library to identify the resource, but not displayed when it is used.';
$string['subplugintype_mediatimesrc'] = 'Media Time source';
$string['subplugintype_mediatimesrc'] = 'Media Time source';
$string['subplugintype_mediatimesrc_plural'] = 'Media Time sources';
$string['tagarea_tool_mediatime'] = 'Media resources';
$string['title'] = 'Title';
Expand Down
2 changes: 1 addition & 1 deletion source/streamio/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
$plugin->component = 'mediatimesrc_streamio';
$plugin->release = '1.0';
$plugin->version = 2024010801;
$plugin->requires = 2022112800;
$plugin->requires = 2022110800;
$plugin->maturity = MATURITY_ALPHA;
2 changes: 1 addition & 1 deletion source/videotime/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
$plugin->component = 'mediatimesrc_videotime';
$plugin->release = '1.0';
$plugin->version = 2024010800;
$plugin->requires = 2022112800;
$plugin->requires = 2022110800;
$plugin->maturity = MATURITY_ALPHA;
6 changes: 4 additions & 2 deletions source/vimeo/classes/form/edit_resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public function definition() {
* Display resource or add file fields
*/
public function definition_after_data() {
global $DB, $OUTPUT;
global $DB, $PAGE;

$output = $PAGE->get_renderer('tool_mediatime');

$mform =& $this->_form;

Expand All @@ -101,7 +103,7 @@ public function definition_after_data() {
$content = json_decode($record->content);
$video = new video($content);
$mform->insertElementBefore(
$mform->createElement('html', $OUTPUT->render($video)),
$mform->createElement('html', $output->render($video)),
'name'
);
$mform->removeElement('vimeo_url');
Expand Down
2 changes: 1 addition & 1 deletion source/vimeo/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
$plugin->component = 'mediatimesrc_vimeo';
$plugin->release = '1.0';
$plugin->version = 2024010802;
$plugin->requires = 2022112800;
$plugin->requires = 2022110800;
$plugin->maturity = MATURITY_ALPHA;
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$plugin->component = 'tool_mediatime';
$plugin->release = '1.0';
$plugin->version = 2024010804;
$plugin->requires = 2022112800;
$plugin->requires = 2022110800;
$plugin->maturity = MATURITY_ALPHA;
$plugin->dependencies = [
'mod_videotime' => 2023011200,
Expand Down

0 comments on commit 8d0cd2f

Please sign in to comment.