ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r7134: LJSUP-3976: Geo-location identification ...

Committer: ssafronova
LJSUP-3976: Geo-location identification - at the account registration - corrected Kamchatka & rename Great Britain to United Kingdom

U   trunk/cgi-bin/LJ/GeoLocation.pm
Modified: trunk/cgi-bin/LJ/GeoLocation.pm
===================================================================
--- trunk/cgi-bin/LJ/GeoLocation.pm	2009-03-17 11:50:03 UTC (rev 7133)
+++ trunk/cgi-bin/LJ/GeoLocation.pm	2009-03-18 04:46:03 UTC (rev 7134)
@@ -126,7 +126,7 @@
 # numbering of Russian regions differs in GeoIP and LJ code
 # so, this is table for renumbering from geo_* tables data to codes: stateru data
 my %russian_regions = (
-'IpGeoBase' => 0,
+'IpGeoBase' => 25, # Kamchatka, temporarily!
 'CI' =>  80,
 18  =>  0,
 35  =>  52,
@@ -257,6 +257,10 @@
         $self->{region_code} = $russian_regions{$self->{region_code}};
     }
 
+    if ($self->{country_short} eq 'GB') {
+        $self->{country_short} = 'UK'; # Great Britain is 'UK' in LJ tables
+    }
+
     $self->{region} = $self->{region_name};
     $self->{region} = $self->{region_code} if defined $LJ::COUNTRIES_WITH_REGIONS{ $self->{country_short} };
 

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments