From ed0f1b5980005460f8f8b554ddf991da13e67692 Mon Sep 17 00:00:00 2001 From: Matthieu Bontemps Date: Sun, 27 Mar 2011 19:12:40 +0200 Subject: [PATCH] Fix mkdirs to mkdir. 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". --- Controller/ImagineController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ImagineController.php b/Controller/ImagineController.php index ee29a8e..5273313 100644 --- a/Controller/ImagineController.php +++ b/Controller/ImagineController.php @@ -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 ));