mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-29972 make sure lang dir exists before writing into it
This commit is contained in:
parent
38e9a1cc79
commit
44ac4f62de
@ -6383,6 +6383,7 @@ class core_string_manager implements string_manager {
|
||||
if (!empty($CFG->langcache) and !empty($this->menucache)) {
|
||||
// cache the list so that it can be used next time
|
||||
collatorlib::asort($languages);
|
||||
check_dir_exists(dirname($this->menucache), true, true);
|
||||
file_put_contents($this->menucache, json_encode($languages));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user