mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Outage remodelled both in DB and PHP Class. Issue #17.
This commit is contained in:
4
new.php
4
new.php
@@ -36,9 +36,7 @@ outagelib::pagesetup();
|
||||
$mform = new \auth_outage\forms\outage\edit();
|
||||
if ($mform->is_cancelled()) {
|
||||
redirect('/auth/outage/manage.php');
|
||||
} else if ($fromform = $mform->get_data()) {
|
||||
$fromform = outagelib::parseformdata($fromform);
|
||||
$outage = new outage($fromform);
|
||||
} else if ($outage = $mform->get_data()) {
|
||||
$id = outagedb::save($outage);
|
||||
redirect('/auth/outage/manage.php#auth_outage_id_' . $id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user