OPen config.php
Set $CFG->routerconfigured = false;
Navigate to site
Open console
Check value of M.cfg.apibase
Confirm the value contains r.php
Set $CFG->routerconfigured = true;
Check value of M.cfg.apibase
Confirm the value does not contain r.php
Code verified against automated checks.
Checked MDL-85028 using repository: https://github.com/andrewnicols/moodle.git
MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-85028-405 | CI Job ]
main (0 errors / 0 warnings) [branch: MDL-85028-main | CI Job ]
More information about this report
Built on: Thu Mar 27 03:57:23 UTC 2025
It bases its output on $CFG->router_configured but the name shoudl be $CFG->routerconfigured.