mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-42442 eliminate references to removed standardwhite theme
This commit is contained in:
parent
4e47920f08
commit
1302f765a7
1 changed files with 2 additions and 2 deletions
|
@ -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 )) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue