Committer: akanashin
LJSUP-13146: Olympics2012.lenta.ru widget for unlogged usersU 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)), }; }