mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 18:18:07 +02:00
Fixed problem with bootstrap in CLI. Fixed file.php when dataroot had trailing slashes.
This commit is contained in:
1 parent
bf3b08cfea
commit
67600472ec
2 files changed
+2
-6
No files matched your search
@@ -32,11 +32,6 @@
|
||||
// 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;
|
||||
}
|
||||
|
||||
// We need the CFG->dataroot, if not set yet this script is called too early in config.php file.
|
||||
if (!isset($CFG->dataroot)) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user