Skip to content

Commit

Permalink
MED-100: Remove warning on redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Alexander Scholz authored and Daniel Thies committed May 18, 2024
1 parent 1781f0b commit 09e0e33
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@

admin_externalpage_setup('mediatimelibrary');

<<<<<<< HEAD
$PAGE->set_heading(get_string('pluginname', 'tool_mediatime'));
=======
>>>>>>> a8c029a... MED-100: Remove warning on redirect
if ($id) {
$record = $DB->get_record('tool_mediatime', ['id' => $id]);
} else if ($delete) {
Expand All @@ -49,8 +52,10 @@

$manager = new media_manager($source, $record);

echo $OUTPUT->header();
$output = $PAGE->get_renderer('tool_mediatime');
echo $output->header();
echo $output->heading(get_string('pluginname', 'tool_mediatime'));

echo $OUTPUT->render($manager);
echo $output->render($manager);

echo $OUTPUT->footer();
echo $output->footer();

0 comments on commit 09e0e33

Please sign in to comment.