mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-27116 theme_config::find_theme_location() respects $CFG->themedir
Credit goes to Jai Gupta for the idea of the patch.
This commit is contained in:
parent
b8df9414bd
commit
3dd1d7e701
1 changed files with 3 additions and 0 deletions
|
@ -1035,6 +1035,9 @@ class theme_config {
|
|||
if (file_exists("$CFG->dirroot/theme/$themename/config.php")) {
|
||||
$dir = "$CFG->dirroot/theme/$themename";
|
||||
|
||||
} else if (!empty($CFG->themedir) and file_exists("$CFG->themedir/$themename/config.php")) {
|
||||
$dir = "$CFG->themedir/$themename";
|
||||
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue