From d2505295c96c89495a3345ea2711e35bce676d05 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 19 Nov 2023 16:22:47 +0000 Subject: [PATCH 1/3] locale.php: Fix minor indenting issue --- php/locale.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/locale.php b/php/locale.php index b902479e..da936fda 100644 --- a/php/locale.php +++ b/php/locale.php @@ -20,7 +20,7 @@ $locale = $_SESSION["locale"]; } - if ($locale === null || $locale === '') { + if ($locale === null || $locale === '') { // https://github.com/jpatokal/openflights/issues/1322 // If we've not already got a locale set (from $_SESSION or $_GET), // see if we can use the HTTP ACCEPT_LANGUAGE header value From 8a0e11ecf4972a5aa1a29bfb023df725fc506e2e Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 19 Nov 2023 16:39:37 +0000 Subject: [PATCH 2/3] routes.php: Fix call to undefined _s() --- php/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/routes.php b/php/routes.php index 145457c7..4a7d43f4 100644 --- a/php/routes.php +++ b/php/routes.php @@ -27,7 +27,7 @@ default: die(_('Error') . ';' . sprintf( - _s('Query %s not understood. For airlines, please enter a 2-letter IATA code. For airports, please enter a 3-letter IATA or 4-letter ICAO code.'), + _('Query %s not understood. For airlines, please enter a 2-letter IATA code. For airports, please enter a 3-letter IATA or 4-letter ICAO code.'), $param )); } From 7f02f2fc7f8fb76fa574672f5753a2a9c0d1aaef Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 19 Nov 2023 16:54:07 +0000 Subject: [PATCH 3/3] apsearch.php: Fix double space --- php/apsearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/apsearch.php b/php/apsearch.php index ce123030..f71be97c 100644 --- a/php/apsearch.php +++ b/php/apsearch.php @@ -32,7 +32,7 @@ if (strpos($ref, 'com.cathaypacific.iJourneyLite') !== false) { die( json_encode( - ["status" => 0, "message" => "Cathay Pacific iJourneyLite is not licensed to use this API. Please contact info@openflights.org to resolve this."] + ["status" => 0, "message" => "Cathay Pacific iJourneyLite is not licensed to use this API. Please contact info@openflights.org to resolve this."] ) ); }