mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #46 - Added tests for every class, except outputs. Small bugs/invalid parameter detection fixed together.
This commit is contained in:
@@ -24,16 +24,17 @@
|
||||
*/
|
||||
|
||||
use auth_outage\dml\outagedb;
|
||||
use auth_outage\local\outagelib;
|
||||
use auth_outage\output\renderer;
|
||||
|
||||
require_once(__DIR__.'/../../config.php');
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
|
||||
$renderer = outagelib::page_setup();
|
||||
admin_externalpage_setup('auth_outage_manage');
|
||||
$PAGE->set_url(new moodle_url('/auth/outage/manage.php'));
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
$renderer->output_view('manage.php', [
|
||||
renderer::get()->output_view('manage.php', [
|
||||
'unended' => outagedb::get_all_unended(),
|
||||
'ended' => outagedb::get_all_ended(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user