mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-72163 admin: Manually include some interfaces
Where the autolodaer is not registered (ABORT_AFTER_CONFIG and installation), some adminlib classes, traits, and interfaces need to be manually loaded.
This commit is contained in:
parent
d55aeee10c
commit
617ff7fb83
@ -111,6 +111,11 @@ require_once($CFG->libdir.'/ddllib.php');
|
||||
require_once($CFG->libdir.'/xmlize.php');
|
||||
require_once($CFG->libdir.'/messagelib.php');
|
||||
|
||||
// Add classes, traits, and interfaces which should be autoloaded.
|
||||
// The autoloader is configured late in setup.php, after ABORT_AFTER_CONFIG.
|
||||
// This is also required where the setup system is not included at all.
|
||||
require_once($CFG->dirroot.'/admin/classes/local/settings/linkable_settings_page.php');
|
||||
|
||||
define('INSECURE_DATAROOT_WARNING', 1);
|
||||
define('INSECURE_DATAROOT_ERROR', 2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user