mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #22 - Created bootstrap.php to intercept the execution before Moodle finished loading.
This commit is contained in:
@@ -81,11 +81,8 @@ enable the `Outage manager` plugin and place it on the top.
|
||||
after your `$CFG->dataroot` is set:
|
||||
|
||||
```
|
||||
if (file_exists("$CFG->dataroot/climaintenance.php")) {
|
||||
$CFG->dirroot = __DIR__;
|
||||
require("$CFG->dataroot/climaintenance.php");
|
||||
} else {
|
||||
$CFG->auth_outage_check = 1;
|
||||
if (file_exists(__DIR__.'/auth/outage/bootstrap.php')) {
|
||||
require(__DIR__.'/auth/outage/bootstrap.php');
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user