Sonar fixes.
This commit is contained in:
parent
5db46c220c
commit
9e7a10bf6e
2 changed files with 3 additions and 3 deletions
|
@ -3,10 +3,10 @@
|
|||
function loadLocale($lang = 'en-us') {
|
||||
$file = __DIR__ . '/../locale/' . $lang . '/messages.php';
|
||||
if (file_exists($file)) {
|
||||
return require $file;
|
||||
return require_once $file;
|
||||
} else {
|
||||
// Fallback to English if the specified language file does not exist
|
||||
return require __DIR__ . '/../locale/en-us/messages.php';
|
||||
return require_once __DIR__ . '/../locale/en-us/messages.php';
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue