Skip to content

Commit

Permalink
Fix #8043
Browse files Browse the repository at this point in the history
  • Loading branch information
jdarwood007 committed Jan 26, 2024
1 parent 90f4a2a commit 13ae296
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ public static function load(string $template_name, string $lang = '', bool $fata
// Try to find the language file.
$found = false;

// Flip this around.
$attempts = array_reverse($attempts);

foreach ($attempts as $k => $file) {
if (file_exists($file[0] . '/' . $file[2] . '/' . $file[1] . '.php')) {
/**
Expand Down Expand Up @@ -250,8 +253,6 @@ public static function load(string $template_name, string $lang = '', bool $fata

setlocale(LC_CTYPE, $locale_variants);
}

break;
}
}

Expand Down

0 comments on commit 13ae296

Please sign in to comment.