diff --git a/lib/setup.php b/lib/setup.php index 0e04b3b8f4a..cee833b4ddc 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -53,9 +53,6 @@ $CFG->wordlist = "$CFG->libdir/wordlist.txt"; $CFG->javascript = "$CFG->libdir/javascript.php"; - $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.php"; - $CFG->header = "$CFG->dirroot/theme/$CFG->theme/header.html"; - $CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html"; $CFG->moddata = "moddata"; @@ -66,6 +63,10 @@ } require("$CFG->dirroot/theme/$CFG->theme/config.php"); + $CFG->stylesheet = "$CFG->wwwroot/theme/$CFG->theme/styles.php"; + $CFG->header = "$CFG->dirroot/theme/$CFG->theme/header.html"; + $CFG->footer = "$CFG->dirroot/theme/$CFG->theme/footer.html"; + /// Reference code to remove magic quotes from everything ... just in case.