Removed some THEME stuff

This commit is contained in:
moodler
2005-01-25 17:39:55 +00:00
parent 4a2c4132d5
commit 538a22102b
3 changed files with 31 additions and 65 deletions
+5 -5
View File
@@ -218,11 +218,7 @@ global $THEME;
}
include($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';
if (empty($THEME->custompix)) {
if (empty($CFG->custompix)) { // Could be set in the above file
$CFG->pixpath = $CFG->wwwroot .'/pix';
$CFG->modpixpath = $CFG->wwwroot .'/mod';
} else {
@@ -230,6 +226,10 @@ global $THEME;
$CFG->modpixpath = $CFG->wwwroot .'/theme/'. $CFG->theme .'/pix/mod';
}
$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';
/// A hack to get around magic_quotes_gpc being turned off