Merge branch 'MDL-50788-28' of git://github.com/danpoltawski/moodle into MOODLE_28_STABLE

This commit is contained in:
Andrew Nicols
2015-10-13 08:54:42 +08:00
+7
View File
@@ -647,6 +647,13 @@ $cache = '.var_export($cache, true).';
return;
}
if (!is_readable($fulldir)) {
// TODO: MDL-51711 We should generate some diagnostic debugging information in this case
// because its pretty likely to lead to a missing class error further down the line.
// But our early setup code can't handle errors this early at the moment.
return;
}
$items = new \DirectoryIterator($fulldir);
foreach ($items as $item) {
if ($item->isDot()) {