mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-23984 using standard checkdirexists for lang packs
This commit is contained in:
parent
e0d8621854
commit
d8fa45505c
2 changed files with 6 additions and 5 deletions
|
@ -262,7 +262,7 @@ class report_customlang_utils {
|
|||
}
|
||||
$filepath = $filepath.'/'.$filename;
|
||||
if (!is_dir(dirname($filepath))) {
|
||||
mkdir(dirname($filepath), 0755, true);
|
||||
check_dir_exists(dirname($filepath));
|
||||
}
|
||||
|
||||
if (!$f = fopen($filepath, 'w')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue