mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
MDL-18200 - fix make_upload_directory() was always failing on initial creation of dataroot
This commit is contained in:
parent
5bdb5ab2af
commit
b10a14a392
@ -327,7 +327,7 @@ function make_upload_directory($directory, $shownotices=true) {
|
||||
umask(0000);
|
||||
|
||||
if (!file_exists($currdir)) {
|
||||
if (!is_writable($currdir) or !mkdir($currdir, $CFG->directorypermissions)) {
|
||||
if (!mkdir($currdir, $CFG->directorypermissions) or !is_writable($currdir)) {
|
||||
if ($shownotices) {
|
||||
echo '<div class="notifyproblem" align="center">ERROR: You need to create the directory '.
|
||||
$currdir .' with web server write access</div>'."<br />\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user