Skip to content

Commit

Permalink
redeclared $theme
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyforth committed Mar 18, 2011
1 parent e3975ff commit 612d6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/setup.php
Expand Up @@ -700,7 +700,7 @@ function stripslashes_deep($value) {
if (!isset($CFG->themes)) {
$theme_obj = new stdClass();
$theme_obj->device = 'default';
$theme_obj->theme = 'standardwhite';
$theme = $theme_obj->theme = 'standardwhite';
$current_prefs[] = $theme_obj;
$CFG->themes = json_encode($current_prefs);
}
Expand Down Expand Up @@ -733,7 +733,7 @@ function stripslashes_deep($value) {
moodle_setlocale();

if (!empty($CFG->debugvalidators) and !empty($CFG->guestloginbutton)) {
if ($theme == 'standardwhite') { // Temporary measure to help with XHTML validation
if (!empty($theme) and $theme == 'standardwhite') { // Temporary measure to help with XHTML validation
if (isset($_SERVER['HTTP_USER_AGENT']) and empty($USER->id)) { // Allow W3CValidator in as user called w3cvalidator (or guest)
if ((strpos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') !== false) or
(strpos($_SERVER['HTTP_USER_AGENT'], 'Cynthia') !== false )) {
Expand Down

0 comments on commit 612d6cf

Please sign in to comment.