mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #46 - Added tests for every class, except outputs. Small bugs/invalid parameter detection fixed together.
This commit is contained in:
@@ -25,13 +25,14 @@
|
||||
|
||||
use auth_outage\dml\outagedb;
|
||||
use auth_outage\form\outage\finish;
|
||||
use auth_outage\local\outagelib;
|
||||
use auth_outage\output\renderer;
|
||||
|
||||
require_once(__DIR__.'/../../config.php');
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
require_once($CFG->libdir.'/formslib.php');
|
||||
|
||||
$renderer = outagelib::page_setup();
|
||||
admin_externalpage_setup('auth_outage_manage');
|
||||
$PAGE->set_url(new moodle_url('/auth/outage/manage.php'));
|
||||
|
||||
$mform = new finish();
|
||||
if ($mform->is_cancelled()) {
|
||||
@@ -53,7 +54,7 @@ $mform->set_data($dataid);
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
echo $renderer->renderfinishconfirmation($outage);
|
||||
echo renderer::get()->renderfinishconfirmation($outage);
|
||||
|
||||
$mform->display();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user