Removed some THEME stuff
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user