MDL-42442 eliminate references to removed standardwhite theme

This commit is contained in:
Petr Škoda 2013-10-20 18:00:54 +02:00
parent 4e47920f08
commit 1302f765a7

View file

@ -794,7 +794,7 @@ unset($urlthemename);
// Ensure a valid theme is set. // Ensure a valid theme is set.
if (!isset($CFG->theme)) { if (!isset($CFG->theme)) {
$CFG->theme = 'standardwhite'; $CFG->theme = 'standard';
} }
// Set language/locale of printed times. If user has chosen a language that // Set language/locale of printed times. If user has chosen a language that
@ -838,7 +838,7 @@ unset($classname);
if (!empty($CFG->debugvalidators) and !empty($CFG->guestloginbutton)) { if (!empty($CFG->debugvalidators) and !empty($CFG->guestloginbutton)) {
if ($CFG->theme == 'standard' or $CFG->theme == 'standardwhite') { // Temporary measure to help with XHTML validation if ($CFG->theme == 'standard') { // 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 (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 if ((strpos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') !== false) or
(strpos($_SERVER['HTTP_USER_AGENT'], 'Cynthia') !== false )) { (strpos($_SERVER['HTTP_USER_AGENT'], 'Cynthia') !== false )) {