Skip to content

Commit

Permalink
Fix mkdirs to mkdir.
Browse files Browse the repository at this point in the history
But note that the Symfony mkdir function seems to have a bug in the return function so you'll have a "Could not create directory for now".
  • Loading branch information
mbontemps committed Mar 27, 2011
1 parent 5cd10bd commit ed0f1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/ImagineController.php
Expand Up @@ -94,7 +94,7 @@ public function filter($path, $filter)
$dir = pathinfo($realPath, PATHINFO_DIRNAME);

if (!is_dir($dir)) {
if (!$this->filesystem->mkdirs($dir)) {
if (!$this->filesystem->mkdir($dir)) {
throw new \RuntimeException(sprintf(
'Could not create directory %s', $dir
));
Expand Down

0 comments on commit ed0f1b5

Please sign in to comment.