Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
@ -45,7 +45,9 @@ class TranslationWriter
|
|||
public function disableBackup()
|
||||
{
|
||||
foreach ($this->dumpers as $dumper) {
|
||||
$dumper->setBackup(false);
|
||||
if (method_exists($dumper, 'setBackup')) {
|
||||
$dumper->setBackup(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -77,8 +79,8 @@ class TranslationWriter
|
|||
// get the right dumper
|
||||
$dumper = $this->dumpers[$format];
|
||||
|
||||
if (isset($options['path']) && !is_dir($options['path'])) {
|
||||
mkdir($options['path'], 0777, true);
|
||||
if (isset($options['path']) && !is_dir($options['path']) && !@mkdir($options['path'], 0777, true) && !is_dir($options['path'])) {
|
||||
throw new \RuntimeException(sprintf('Translation Writer was not able to create directory "%s"', $options['path']));
|
||||
}
|
||||
|
||||
// save
|
||||
|
|
Reference in a new issue