Skip to content

Commit

Permalink
Merge pull request #1753 from Subtixx/master
Browse files Browse the repository at this point in the history
Fix Issue #1752 - Hardcoded string + undefined variable
  • Loading branch information
dcblogdev authored Mar 12, 2024
2 parents 0f6fa6c + 91cbeba commit 7e59db7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/CheckLangCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ private function getLangFiles($module)
private function getDirectories($module)
{
$moduleName = $module->getStudlyName();
$path = $module->getPath() . '/Resources/lang';
$path = $module->getPath() . $this->langPath;
$directories = [];
if (is_dir($path)) {
$directories = $this->laravel['files']->directories($path);
$directories = array_map(function ($directory) use ($moduleName) {
Expand Down

0 comments on commit 7e59db7

Please sign in to comment.