holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21197: LJSUP-11197: If user is in two ratings (...

Committer: akanashin
LJSUP-11197: If user is in two ratings (common and UA) display two strings in profile
U   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',
-                    });
-                }
+                });
             }
         }
         #-------------------------------------------------------------------------------------

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