mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
CLISetup/locales
* removed redundant declaration of locales to process
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user