mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 09:10:07 -06:00
Minor logic error if locale is "en_US" instead of "" (unlikely)
This commit is contained in:
@@ -9,11 +9,12 @@
|
||||
|
||||
extract(@parse_ini_file("/boot/config/plugins/dynamix/dynamix.cfg"));
|
||||
$locale = $locale ?? "";
|
||||
if ( $locale == "en_US")
|
||||
$locale = "";
|
||||
|
||||
if ( $locale != @file_get_contents("/tmp/gui.search/locale") ) {
|
||||
@unlink("/tmp/gui.search/searchResults.json");
|
||||
}
|
||||
if ( $locale == "en_US")
|
||||
$locale = "";
|
||||
|
||||
file_put_contents("/tmp/gui.search/locale",$locale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user