MDL-32846 do not forget to create dir for bogus image file placeholders

This commit is contained in:
Petr Skoda 2012-05-08 14:44:34 +02:00
parent 1c6d3af542
commit acc165aac7

View file

@ -127,6 +127,9 @@ $etag = sha1("$themename/$component/$rev/$image");
if (empty($imagefile) or !is_readable($imagefile)) {
if ($rev > -1) {
if (!file_exists($candidatelocation)) {
@mkdir($candidatelocation, $CFG->directorypermissions, true);
}
// make note we can not find this file
$cacheimage = "$candidatelocation/$image.error";
$fp = fopen($cacheimage, 'w');