Tough one! Glad that you've found the solution.
The explanation is that, during your changes in $CFG->wwwroot Moodle has cached it. A typical place is moodledata/muc/config.php. Should be added to somewhere in Moodle Docs.
The explanation is that, during your changes in $CFG->wwwroot Moodle has cached it. A typical place is moodledata/muc/config.php. Should be added to somewhere in Moodle Docs.