فهرست منبع

[AsseticBundle] fixed directory creation when writing assets

Kris Wallsmith 14 سال پیش
والد
کامیت
c565a33a4d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php

+ 1 - 1
src/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php

@@ -153,7 +153,7 @@ class DumpCommand extends Command
         $target = rtrim($basePath, '/') . '/' . $asset->getTargetUrl();
         if (!is_dir($dir = dirname($target))) {
             $output->writeln('<info>[dir+]</info> '.$dir);
-            if (false === @mkdir($dir)) {
+            if (false === @mkdir($dir, 0777, true)) {
                 throw new \RuntimeException('Unable to create directory '.$dir);
             }
         }