holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21187: 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-14 14:13:33 UTC (rev 21186)
+++ trunk/htdocs/userinfo.bml	2012-02-15 07:33:43 UTC (rev 21187)
@@ -701,7 +701,8 @@
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
                          LJ::Lang::ml($href_rating, {rating_place => LJ::commafy(++$position->{result}->{position}), 
-                                                     url_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users')}) .
+                                                     url_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users') . 
+                                                     "?country=cyr&askname=" . $u->username . "#ask_position"}) .
                          "</li>"; 
         }          
         if (ref $ua_position eq 'HASH' && $ua_position->{result}->{position} < 2000) {
@@ -710,7 +711,8 @@
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
                          LJ::Lang::ml($ua_href_rating, {rating_place => LJ::commafy(++$ua_position->{result}->{position}), 
-                                                     url_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users')}) .
+                                                        url_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users') .
+                                                        "?country=UA&askname=" . $u->username . "#ask_position"}) .
                          "</li>"; 
         }
         if ((ref $ua_position eq 'HASH' && $ua_position->{result}->{position} < 2000) || (ref $position eq 'HASH' && $position->{result}->{position} < 2000)) {

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