. /** * Setup file migration helper. * * @package core * @copyright 2024 Andrew Lyons * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ if (property_exists($CFG, 'dirroot') && !str_ends_with($CFG->dirroot, '/public')) { $CFG->libdir = $CFG->libdir . '/lib'; } require_once(dirname(__DIR__) . '/public/lib/setup.php');