holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22520: LJSUP-13146: Olympics2012.lenta.ru widge...

Committer: akanashin
LJSUP-13146: Olympics2012.lenta.ru widget for unlogged users
U   trunk/cgi-bin/LJ/SiteScheme.pm
Modified: trunk/cgi-bin/LJ/SiteScheme.pm
===================================================================
--- trunk/cgi-bin/LJ/SiteScheme.pm	2012-07-30 14:36:17 UTC (rev 22519)
+++ trunk/cgi-bin/LJ/SiteScheme.pm	2012-07-31 07:38:01 UTC (rev 22520)
@@ -359,7 +359,7 @@
     ## see also cgi-bin/LJ/Hooks/Homepage.pm
     my $branding = LJ::run_hook("service_page_branding", { scheme => $class->code }); 
 
-    if ($remote_is_sup && lentaru_branding) {
+    if (($remote_is_sup || LJ::GeoLocation->get_country_info_by_ip() =~ m/^(RU|UA|BY)$/) && lentaru_branding) {
         LJ::need_res(qw{ 
             js/jquery/jquery.lj.lentaRu.js
             stc/widgets/flags.css
@@ -459,7 +459,7 @@
         'ml_copyright_header' => $ml_copyright_header,
 
         'branding'            => $branding,
-        'lentaru_branding'    => $remote_is_sup && lentaru_branding,
+        'lentaru_branding'    => ($remote_is_sup || LJ::GeoLocation->get_country_info_by_ip() =~ m/^(RU|UA|BY)$/) && lentaru_branding,
     };
 }
 

Tags: akanashin, holyandrew, livejournal, pm
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