Issue #64 - Fixed problems detected by Behat test.

This commit is contained in:
Daniel Thee Roperto
2016-10-19 10:30:26 +11:00
parent 6985d33dc6
commit 38dbb6deaa
5 changed files with 14 additions and 9 deletions

View File

@@ -31,6 +31,11 @@ defined('MOODLE_INTERNAL') || die();
*/
function xmldb_auth_outage_uninstall() {
global $DB;
// Delete all outage events.
$DB->delete_records('event', ['eventtype' => 'auth_outage']);
// Delete template file.
$template = auth_outage\local\controllers\infopage::get_defaulttemplatefile();
if (file_exists($template)) {