mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-32143 output lib: Add ability have override core icons in dataroot
Searches dataroot/pix/ and dataroot/pix_plugins/type/plugin for icons to override base install
This commit is contained in:
parent
9ad535c550
commit
f930cf6b41
@ -941,6 +941,9 @@ class theme_config {
|
||||
return $imagefile;
|
||||
}
|
||||
}
|
||||
if ($imagefile = $this->image_exists("$CFG->dataroot/pix/$image")) {
|
||||
return $imagefile;
|
||||
}
|
||||
if ($imagefile = $this->image_exists("$CFG->dirroot/pix/$image")) {
|
||||
return $imagefile;
|
||||
}
|
||||
@ -974,6 +977,9 @@ class theme_config {
|
||||
return $imagefile;
|
||||
}
|
||||
}
|
||||
if ($imagefile = $this->image_exists("$CFG->dataroot/pix_plugins/$type/$plugin/$image")) {
|
||||
return $imagefile;
|
||||
}
|
||||
$dir = get_plugin_directory($type, $plugin);
|
||||
if ($imagefile = $this->image_exists("$dir/pix/$image")) {
|
||||
return $imagefile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user