Commit 4a89d4cc authored by webchick's avatar webchick
Browse files

#605374 by catch: Don't add non-existing files to the registry.

parent 28bca620
......@@ -123,8 +123,10 @@ function registry_get_parsed_files() {
function _registry_parse_files($files) {
$parsed_files = array();
foreach ($files as $filename => $file) {
if (file_exists($filename)) {
$filectime = filectime($filename);
$filemtime = filemtime($filename);
$modified_file = !isset($file['filectime']) || !isset($file['filemtime'])
|| $filectime != $file['filectime'] || $filemtime != $file['filemtime'];
if ($modified_file) {
......@@ -143,6 +145,7 @@ function _registry_parse_files($files) {
->execute();
}
}
}
return $parsed_files;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment