Issue #22 - Created bootstrap.php to intercept the execution before Moodle finished loading.

This commit is contained in:
Daniel Thee Roperto
2016-11-09 16:56:04 +11:00
parent ce2da24b1b
commit 5db5bed914
6 changed files with 98 additions and 51 deletions

View File

@@ -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');
}
```