Committer: akanashin
LJSUP-12319: We need to display social capital for users which turn off RatingsU trunk/htdocs/tools/endpoints/ctxpopup.bml U trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml =================================================================== --- trunk/htdocs/tools/endpoints/ctxpopup.bml 2012-05-25 08:23:33 UTC (rev 22058) +++ trunk/htdocs/tools/endpoints/ctxpopup.bml 2012-05-25 08:26:49 UTC (rev 22059) @@ -123,7 +123,7 @@ my ($position, $first, $soc_capital); $position = LJ::PersonalStats::DB->fetch_raw('ratings', { - func => 'get_value', + func => 'get_authority', what => $u->journaltype eq 'C' ? 'communities' : 'users', journal_id => $u->userid, by => 'friends_weight', Modified: trunk/htdocs/userinfo.bml =================================================================== --- trunk/htdocs/userinfo.bml 2012-05-25 08:23:33 UTC (rev 22058) +++ trunk/htdocs/userinfo.bml 2012-05-25 08:26:49 UTC (rev 22059) @@ -664,7 +664,7 @@ $country = $u->prop('country') if $u && $country ne 'UA'; if ($country eq 'UA') { $ua_position = LJ::PersonalStats::DB->fetch_raw('ratings', { - func => 'get_value', + func => 'get_authority', what => $u->journaltype eq 'C' ? 'communities' : 'users', journal_id => $u->userid, by => 'friends_weight', @@ -676,7 +676,7 @@ #------------------------------------------------------------------------------------- $position = LJ::PersonalStats::DB->fetch_raw('ratings', { - func => 'get_value', + func => 'get_authority', what => $u->journaltype eq 'C' ? 'communities' : 'users', journal_id => $u->userid, by => 'friends_weight',