mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
1 changed files with 6 additions and 0 deletions
|
@ -941,6 +941,9 @@ class theme_config {
|
||||||
return $imagefile;
|
return $imagefile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($imagefile = $this->image_exists("$CFG->dataroot/pix/$image")) {
|
||||||
|
return $imagefile;
|
||||||
|
}
|
||||||
if ($imagefile = $this->image_exists("$CFG->dirroot/pix/$image")) {
|
if ($imagefile = $this->image_exists("$CFG->dirroot/pix/$image")) {
|
||||||
return $imagefile;
|
return $imagefile;
|
||||||
}
|
}
|
||||||
|
@ -974,6 +977,9 @@ class theme_config {
|
||||||
return $imagefile;
|
return $imagefile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($imagefile = $this->image_exists("$CFG->dataroot/pix_plugins/$type/$plugin/$image")) {
|
||||||
|
return $imagefile;
|
||||||
|
}
|
||||||
$dir = get_plugin_directory($type, $plugin);
|
$dir = get_plugin_directory($type, $plugin);
|
||||||
if ($imagefile = $this->image_exists("$dir/pix/$image")) {
|
if ($imagefile = $this->image_exists("$dir/pix/$image")) {
|
||||||
return $imagefile;
|
return $imagefile;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue