From: moodler Date: Tue, 10 Dec 2002 13:37:37 +0000 (+0000) Subject: Theme not working for brand-new setup. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e6f10ec582c44f4c6fc2a6bfa655e9f57cf695d4;p=moodle.git Theme not working for brand-new setup. --- diff --git a/lib/setup.php b/lib/setup.php index 0e04b3b8f4..cee833b4dd 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.