From 47a50a49e449c268d36d5b23298a4d9151eabe41 Mon Sep 17 00:00:00 2001 From: Vytenis Date: Sat, 12 Mar 2016 22:17:12 +0200 Subject: [PATCH] Update FetchCommand.php Fixes an issue on Windows platform. Wrong paths separator. As result - imposible to fetch by specifying locale name ``` php artisan translation:fetch -l en ``` --- src/Console/Commands/FetchCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/FetchCommand.php b/src/Console/Commands/FetchCommand.php index 9b36bdf..8556f81 100644 --- a/src/Console/Commands/FetchCommand.php +++ b/src/Console/Commands/FetchCommand.php @@ -64,7 +64,7 @@ protected function flattenArray($keys, $prefix = '') { } protected function cleanLocaleDir($item) { - return str_replace($this->lang_path.'/', '', $item); + return basename($item); } protected function cleanGroupDir($item, $locale) {