MDL-69061 core: Require linkable_settings_page.php using $CFG->admin

This commit is contained in:
Jun Pataleta 2022-01-11 21:08:22 +08:00
parent e885801e58
commit 5804180e20

View file

@ -114,7 +114,7 @@ require_once($CFG->libdir.'/messagelib.php');
// Add classes, traits, and interfaces which should be autoloaded. // Add classes, traits, and interfaces which should be autoloaded.
// The autoloader is configured late in setup.php, after ABORT_AFTER_CONFIG. // 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. // 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'); require_once($CFG->dirroot.'/'.$CFG->admin.'/classes/local/settings/linkable_settings_page.php');
define('INSECURE_DATAROOT_WARNING', 1); define('INSECURE_DATAROOT_WARNING', 1);
define('INSECURE_DATAROOT_ERROR', 2); define('INSECURE_DATAROOT_ERROR', 2);