Skip to content

Commit

Permalink
FileStorage: automatic creation of subdirectories limited to one level
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 7, 2010
1 parent 9f610bf commit 75ba291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nette/Caching/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function write($key, $data, array $dp)
$cacheFile = $this->getCacheFile($key);
if ($this->useDirs && !is_dir($dir = dirname($cacheFile))) {
umask(0000);
if (!mkdir($dir, 0777, TRUE)) {
if (!mkdir($dir, 0777)) {
return;
}
}
Expand Down

0 comments on commit 75ba291

Please sign in to comment.