tor.cgi: fix location function call again

Message ID 20201201214543.26900-1-peter.mueller@ipfire.org
State Accepted
Commit 848911b24757d6367e325985f860fbf73f811875
Headers
Series tor.cgi: fix location function call again |

Commit Message

Peter Müller Dec. 1, 2020, 9:45 p.m. UTC
  This line was accidentially messed up while merging two patchsets
together, causing tor.cgi to crash with an HTTP error 500 in testing.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 html/cgi-bin/tor.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/html/cgi-bin/tor.cgi b/html/cgi-bin/tor.cgi
index fe91ed399..ea340b612 100644
--- a/html/cgi-bin/tor.cgi
+++ b/html/cgi-bin/tor.cgi
@@ -340,7 +340,7 @@  END
 			@guard_countries = split(/\|/, $settings{'TOR_GUARD_COUNTRY'});
 		}
 
-		my @country_codes = &Location::database_countries($db_handle);
+		my @country_codes = &Location::Functions::get_locations("no_special_locations");
 		foreach my $country_code (@country_codes) {
 			# Convert country code into upper case format.
 			$country_code = uc($country_code);