diff options
-rw-r--r-- | plugins/Diagnostics/tests/UI/expected-screenshots/Diagnostics_page.png | 4 | ||||
-rw-r--r-- | plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Diagnostics/tests/UI/expected-screenshots/Diagnostics_page.png b/plugins/Diagnostics/tests/UI/expected-screenshots/Diagnostics_page.png index 26cd5b633c..9e1e93661d 100644 --- a/plugins/Diagnostics/tests/UI/expected-screenshots/Diagnostics_page.png +++ b/plugins/Diagnostics/tests/UI/expected-screenshots/Diagnostics_page.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8809c4c3142064eb43329a7c9dddaeaaf8edf97c78c8e55b4615a0324562be29 -size 452174 +oid sha256:fcc30ea2194c731a6aaa48f51316ec58015cb1d14adf2025ade229dbc953b204 +size 460614 diff --git a/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php b/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php index 00fcb59dab..e43c06960f 100644 --- a/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php +++ b/plugins/UserCountry/Diagnostic/GeolocationDiagnostic.php @@ -71,6 +71,9 @@ class GeolocationDiagnostic implements Diagnostic return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_WARNING, $providerWarning)]; } - return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK)]; + $availableInfo = LocationProvider::getProviderById($currentProviderId)->getSupportedLocationInfo(); + $message = sprintf("%s (%s)", $currentProviderId, implode(', ', array_keys(array_filter($availableInfo)))); + + return [DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_OK, $message)]; } } |