Minor logic error if locale is "en_US" instead of "" (unlikely)

This commit is contained in:
Squidly271
2023-09-23 10:07:04 -04:00
committed by GitHub
parent e44851de92
commit 051e603384

View File

@@ -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);