Skip to content

Commit cc93893

Browse files
committed
Replace Language strings only if more than 1 file is found
1 parent d0305d5 commit cc93893

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

system/Language/Language.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,14 @@ protected function requireFile(string $path): array
273273
$strings[] = require $file;
274274
}
275275

276-
if ($strings)
276+
if (isset($strings[1]))
277277
{
278278
$strings = array_replace_recursive(...$strings);
279279
}
280+
elseif (isset($strings[0]))
281+
{
282+
$strings = $strings[0];
283+
}
280284

281285
return $strings;
282286
}

0 commit comments

Comments
 (0)