mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 10:18:06 +02:00
Applying moodle coding standards.
This commit is contained in:
1 parent
33be3eef86
commit
0c97b4be01
7 files changed
+92
-84
No files matched your search
+5
-2
@@ -29,6 +29,9 @@
|
||||
* @var stdClass $CFG
|
||||
*/
|
||||
|
||||
// This call is required by Moodle, but this script should have been called by config.php anyway.
|
||||
require_once(__DIR__.'/../../config.php');
|
||||
|
||||
// This file does nothing if running from CLI.
|
||||
if (defined('CLI_SCRIPT') && CLI_SCRIPT) {
|
||||
return;
|
||||
@@ -40,8 +43,8 @@ if (!isset($CFG->dataroot)) {
|
||||
}
|
||||
|
||||
// 1) Check and run the hook.
|
||||
if (isset($auth_outage_bootstrap_callback) && is_callable($auth_outage_bootstrap_callback)) {
|
||||
$auth_outage_bootstrap_callback();
|
||||
if (is_callable('auth_outage_bootstrap_callback')) {
|
||||
call_user_func('auth_outage_bootstrap_callback');
|
||||
}
|
||||
|
||||
// 2) Check for allowed IPs during outages.
|
||||
|
||||
Reference in new issue
Block a user