Skip to content

Commit

Permalink
Remove backwards compatibility in report table.
Browse files Browse the repository at this point in the history
Unnecessary since bump to version requirements.
  • Loading branch information
paulholden committed Dec 11, 2023
1 parent 8b42965 commit c66a731
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 201 deletions.
49 changes: 0 additions & 49 deletions classes/output/renderer.php

This file was deleted.

144 changes: 0 additions & 144 deletions classes/output/report_table.php

This file was deleted.

10 changes: 2 additions & 8 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@

echo $OUTPUT->heading_with_help(get_string('pluginname', 'report_upgradelog'), 'upgrades', 'report_upgradelog');

// Check for presence of reportbuilder.
if (class_exists(system_report_factory::class)) {
$report = system_report_factory::create(upgrades::class, context_system::instance());
echo $report->output();
} else {
($table = new \report_upgradelog\output\report_table())->define_baseurl($PAGE->url);
echo $PAGE->get_renderer('report_upgradelog')->render($table);
}
$report = system_report_factory::create(upgrades::class, context_system::instance());
echo $report->output();

echo $OUTPUT->footer();

0 comments on commit c66a731

Please sign in to comment.