Skip to content

Commit

Permalink
[FrameworkBundle] Checks that the template is readable before checkin…
Browse files Browse the repository at this point in the history
…g its modification time
  • Loading branch information
francisbesset committed Nov 26, 2011
1 parent 7b1dda8 commit 17dc605
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -65,6 +65,10 @@ public function isFresh(TemplateReferenceInterface $template, $time)
return false;
}

if (!is_readable((string) $storage)) {
return false;
}

return filemtime((string) $storage) < $time;
}
}

0 comments on commit 17dc605

Please sign in to comment.