Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r7442: Country name problem: GB=UK

Committer: gariev
Country name problem: GB=UK

U   trunk/htdocs/index.bml
Modified: trunk/htdocs/index.bml
===================================================================
--- trunk/htdocs/index.bml	2009-07-09 07:33:16 UTC (rev 7441)
+++ trunk/htdocs/index.bml	2009-07-09 08:02:35 UTC (rev 7442)
@@ -26,9 +26,8 @@
     my $news = LJ::load_user('news');
     my $ret = "";
 
-    my ($ip_class, $country) = LJ::LJcom::ip_class();
-    
-    my $uk_block = ($country eq 'UK') ? 
+    my $country = LJ::GeoLocation->get_country_info_by_ip;
+    my $uk_block = ($country eq 'UK' || $country eq 'GB') ? 
         LJ::Widget::ExtBlock->render(id=>'homepage.uk') : '';
  
     ### Logged-in Homepage ###

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