Skip to content

Commit

Permalink
compatibality fix thanks to #34
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmuhittin committed Aug 24, 2020
1 parent 2b52183 commit a1565d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TranslationFileTranslators/PhpArrayFileTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private function create_missing_target_folders($target_locale, $files)
}
foreach ($files as $file){
if(Str::contains($file, '/')){
$folder_address = $this->get_language_file_address($target_locale, Str::of($file)->dirname());
$folder_address = $this->get_language_file_address($target_locale, dirname($file));
if(!is_dir($folder_address)){
mkdir($folder_address, 0777, true);
}
Expand Down

0 comments on commit a1565d5

Please sign in to comment.