We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3955a3 commit 74d15ccCopy full SHA for 74d15cc
src/Loader.php
@@ -573,14 +573,14 @@ public function loadL10N(string $Path = ''): void
573
$Primary = $this->readFile($Path . $this->Configuration['core']['lang'] . '.yml');
574
$Fallback = $this->readFile($Path . 'en.yml');
575
}
576
- if ($Primary) {
+ if (strlen($Primary)) {
577
$Arr = [];
578
$this->YAML->process($Primary, $Arr);
579
$Primary = $Arr;
580
} else {
581
$Primary = [];
582
583
- if ($Fallback) {
+ if (strlen($Fallback)) {
584
585
$this->YAML->process($Fallback, $Arr);
586
$Fallback = $Arr;
0 commit comments