Skip to content

Commit

Permalink
VID-818: Proper component name in renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Jul 8, 2024
1 parent a02670a commit 9697ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function render(renderable $widget) {
if (method_exists($widget, 'get_component_name')) {
$component = $widget->get_component_name();
} else {
$component = 'videotime';
$component = 'mod_videotime';
}

if (method_exists($widget, 'get_template_name')) {
Expand Down
2 changes: 1 addition & 1 deletion classes/videotime_instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function export_for_template(renderer_base $output) {
'instance' => $this->to_record(),
'cmid' => $cm->id,
'haspro' => videotime_has_pro(),
'player' => $output->render($embeddedplayer),
'player' => empty($embeddedplayer) ? '' : $output->render($embeddedplayer),
'plugins' => file_exists($CFG->dirroot . '/mod/videotime/plugin/pro/templates/plugins.mustache'),
'uniqueid' => $this->get_uniqueid(),
'toast' => file_exists($CFG->dirroot . '/lib/amd/src/toast.js'),
Expand Down

0 comments on commit 9697ade

Please sign in to comment.