Skip to content

Commit

Permalink
Change listFiles to listContents
Browse files Browse the repository at this point in the history
  • Loading branch information
htvennik committed Oct 17, 2018
1 parent 7453915 commit 5f04b96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/TranslationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ public function loadMessages($directory, MessageCatalogue $catalogue)
foreach ($this->loaders as $format => $loader) {
// load any existing translation files
$extension = $catalogue->getLocale().'.'.$format;
$files = $this->filesystem->listFiles($directory, true);
$files = $this->filesystem->listContents($directory, true);
foreach ($files as $file) {
if ('file' !== $file['type']) {
continue;
}

$path = $file['path'];
$filename = $this->basename($path);
$domain = substr($filename, 0, -1 * strlen($extension) - 1);
Expand Down

0 comments on commit 5f04b96

Please # to comment.