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 b675605
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
admin_externalpage_setup('mediatimelibrary');

$PAGE->set_heading(get_string('pluginname', 'tool_mediatime'));

if ($id) {
$record = $DB->get_record('tool_mediatime', ['id' => $id]);
} else if ($delete) {
Expand All @@ -50,6 +51,7 @@
$manager = new media_manager($source, $record);

echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('pluginname', 'tool_mediatime'));

echo $OUTPUT->render($manager);

Expand Down

0 comments on commit b675605

Please sign in to comment.