CLISetup/locales

* removed redundant declaration of locales to process
This commit is contained in:
Sarjuuk
2024-06-29 13:03:18 +02:00
parent 5d4051928a
commit 2386e35207
13 changed files with 56 additions and 58 deletions

View File

@@ -24,7 +24,7 @@ CLISetup::registerSetup("sql", new class extends SetupScript
$allOK = true;
$locPath = CLISetup::filesInPathLocalized($globStrPath, $allOK);
if ($x = array_diff(CLISetup::$localeIds, array_keys($locPath)))
if ($x = array_diff_key(CLISetup::$locales, $locPath))
{
$locs = array_intersect_key(CLISetup::$locales, array_flip($x));
CLI::write('[emotes] '.sprintf($globStrPath, CLI::bold('['.implode('/,', $locs).'/]')) . ' not found!', CLI::LOG_WARN);