mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-51184 themes: correctly check $CFG->svgicons
Thanks to Ralf Wiederhold for pointing out the bug
This commit is contained in:
parent
6d392b3027
commit
ba2ad4316e
@ -1660,11 +1660,11 @@ class theme_config {
|
||||
global $CFG;
|
||||
if ($this->usesvg === null) {
|
||||
|
||||
if (!isset($CFG->svgicons) || !is_bool($CFG->svgicons)) {
|
||||
if (!isset($CFG->svgicons)) {
|
||||
$this->usesvg = core_useragent::supports_svg();
|
||||
} else {
|
||||
// Force them on/off depending upon the setting.
|
||||
$this->usesvg = $CFG->svgicons;
|
||||
$this->usesvg = (bool)$CFG->svgicons;
|
||||
}
|
||||
}
|
||||
return $this->usesvg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user