aha, oh yes. Die() to prevent execution of the rest of setup.php - including the page it is in fact over-riding. Good spot! Fixed.
(config.php is require_once in most moodle files, so there's no need to explicitly remove it other than for the tiniest of performance notches).
General developer forum
2.7, customscripts, /course/view.php causes stack errors
This discussion has been locked so you can no longer reply to it.