Skip to content

Commit

Permalink
Merge branch '2.3' into 2.5
Browse files Browse the repository at this point in the history
* 2.3:
  [FrameworkBundle] Fixed Translation loader and update translation command.
  [Console] remove « use » statement for PHP built-in exception classes.
  [SecurityBundle] adds unit tests suite for SecurityDataCollector class.

Conflicts:
	src/Symfony/Component/Console/Helper/TableHelper.php
  • Loading branch information
fabpot committed Dec 22, 2014
2 parents 152f95e + 8bbf6ff commit af292e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Writer/TranslationWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function writeTranslations(MessageCatalogue $catalogue, $format, $options
// get the right dumper
$dumper = $this->dumpers[$format];

if (isset($options['path']) && !is_dir($options['path'])) {
mkdir($options['path'], 0777, true);
}

// save
$dumper->dump($catalogue, $options);
}
Expand Down

0 comments on commit af292e8

Please sign in to comment.