mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #64 - Fixed problems detected by Behat test.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user