Committer: akanashin
LJSUP-11197: If user is in two ratings (common and UA) display two strings in profileU trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml =================================================================== --- trunk/htdocs/userinfo.bml 2012-02-15 12:52:20 UTC (rev 21196) +++ trunk/htdocs/userinfo.bml 2012-02-15 14:17:45 UTC (rev 21197) @@ -661,18 +661,14 @@ my $country = LJ::GeoLocation->get_country_info_by_ip; $country = $u->prop('country') if $u && $country ne 'UA'; if ($country eq 'UA') { - my $ua_cookie = LJ::Request->cookie('view_ua_ratings') || 'Y'; - $view_ua_ratings = 1 if $ua_cookie eq 'Y'; - if ( $view_ua_ratings ) { - $ua_position = LJ::PersonalStats::DB->fetch_raw('ratings', { + $ua_position = LJ::PersonalStats::DB->fetch_raw('ratings', { func => 'get_value', what => $u->journaltype eq 'C' ? 'communities' : 'users', journal_id => $u->userid, by => 'friends_weight', type => 0, filter => 'UA', - }); - } + }); } } #-------------------------------------------------------------------------------------