holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22522: 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-31 08:26:58 UTC (rev 22521)
+++ trunk/cgi-bin/LJ/SiteScheme.pm	2012-07-31 08:45:04 UTC (rev 22522)
@@ -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 || LJ::GeoLocation->get_country_info_by_ip() =~ m/^(RU|UA|BY)$/) && lentaru_branding) {
+    if (($remote_is_sup || (!$remote && 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 || LJ::GeoLocation->get_country_info_by_ip() =~ m/^(RU|UA|BY)$/) && lentaru_branding,
+        'lentaru_branding'    => ($remote_is_sup || (!$remote && LJ::GeoLocation->get_country_info_by_ip() =~ m/^(RU|UA|BY)$/)) && lentaru_branding,
         'random_value'        => int(rand(999999999)),
     };
 }

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