mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-29972 make sure lang dir exists before writing into it
This commit is contained in:
parent
38e9a1cc79
commit
44ac4f62de
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue