Skip to content

Commit

Permalink
Pluralize variable name to better indicate it's a list of paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Nov 17, 2014
1 parent a39d28c commit 5c11066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/I18n/MessagesFileLoader.php
Expand Up @@ -151,15 +151,15 @@ public function translationsFolders() {
$locale['language']
];

$searchPath = [];
$searchPaths = [];

$localePaths = App::path('Locale');
if (empty($localePaths)) {
$localePaths[] = APP . 'Locale' . DS;
}
foreach ($localePaths as $path) {
foreach ($folders as $folder) {
$searchPath[] = $path . $folder . DS;
$searchPaths[] = $path . $folder . DS;
}
}

Expand All @@ -168,11 +168,11 @@ public function translationsFolders() {
if (Plugin::loaded($pluginName)) {
$basePath = Plugin::classPath($pluginName) . 'Locale' . DS;
foreach ($folders as $folder) {
$searchPath[] = $basePath . $folder . DS;
$searchPaths[] = $basePath . $folder . DS;
}
}

return $searchPath;
return $searchPaths;
}

}

0 comments on commit 5c11066

Please sign in to comment.