Skip to content

Commit

Permalink
Fix translations fallback for bad keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Jan 24, 2024
1 parent d73d527 commit 2f3fb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/i18n/getlang.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function translate($text, $translations) {
if (array_key_exists($text, $translations)) {
return $translations[$text];
} else {
require_once 'en.php';
require 'en.php';
if (array_key_exists($text, $i18n)) {
return $i18n[$text];
} else {
Expand Down

0 comments on commit 2f3fb1e

Please sign in to comment.