mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32846 do not forget to create dir for bogus image file placeholders
This commit is contained in:
parent
1c6d3af542
commit
acc165aac7
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ $etag = sha1("$themename/$component/$rev/$image");
|
||||||
|
|
||||||
if (empty($imagefile) or !is_readable($imagefile)) {
|
if (empty($imagefile) or !is_readable($imagefile)) {
|
||||||
if ($rev > -1) {
|
if ($rev > -1) {
|
||||||
|
if (!file_exists($candidatelocation)) {
|
||||||
|
@mkdir($candidatelocation, $CFG->directorypermissions, true);
|
||||||
|
}
|
||||||
// make note we can not find this file
|
// make note we can not find this file
|
||||||
$cacheimage = "$candidatelocation/$image.error";
|
$cacheimage = "$candidatelocation/$image.error";
|
||||||
$fp = fopen($cacheimage, 'w');
|
$fp = fopen($cacheimage, 'w');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue