From 924540c5566b11413f63602a26ddaba26c1baa78 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 29 Oct 2021 14:49:54 +0200 Subject: [PATCH] bug and media fixes --- Helper/ipGeoLocationBuilder.php | 2 +- Tools/langUsageInspector.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/ipGeoLocationBuilder.php b/Helper/ipGeoLocationBuilder.php index 37ba420..bab835f 100755 --- a/Helper/ipGeoLocationBuilder.php +++ b/Helper/ipGeoLocationBuilder.php @@ -13,7 +13,7 @@ function ip2int(string $ip) : float } while (($data = \fgetcsv($fh, 150, ",")) !== false) { - \fputcsv($fo, [ip2int($data[0]), ip2int($data[1]), $data[4]]); + \fputcsv($fo, [\ip2int($data[0]), \ip2int($data[1]), $data[4]]); } \fclose($fo); diff --git a/Tools/langUsageInspector.php b/Tools/langUsageInspector.php index d0cfb67..739fee1 100644 --- a/Tools/langUsageInspector.php +++ b/Tools/langUsageInspector.php @@ -25,7 +25,7 @@ $destination = ($key = \array_search('-d', $argv)) === false || $key === \count( $modulePath = ($key = \array_search('-m', $argv)) === false || $key === \count($argv) - 1 ? null : \trim($argv[$key + 1], '" '); if (!isset($destination) || !isset($modulePath)) { - printUsage(); + \printUsage(); return; }