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 committed May 17, 2024
1 parent c0a68dd commit a8c029a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@

admin_externalpage_setup('mediatimelibrary');

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

if ($id) {
$record = $DB->get_record('tool_mediatime', ['id' => $id]);
} else if ($delete) {
Expand All @@ -52,6 +48,10 @@

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

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

echo $output->render($manager);

echo $output->footer();

0 comments on commit a8c029a

Please sign in to comment.