Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r22749: LJSUP-13276 (Private messages statistic ...

Committer: ailyin
LJSUP-13276 (Private messages statistic (frequency distribution))
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-08-28 08:01:45 UTC (rev 22748)
+++ trunk/cgi-bin/LJ/User.pm	2012-08-28 08:30:01 UTC (rev 22749)
@@ -2863,6 +2863,10 @@
 sub get_social_capital {
     my ($u) = @_;
 
+    if ( $LJ::IS_DEV_SERVER && ( my $getter = $LJ::FAKE_SOCIAL_CAPITAL ) ) {
+        return $getter->($u);
+    }
+
     my $soc_capital = LJ::MemCache::get( $u->user."_soc_cap" );
     if (defined $soc_capital) {
         return $soc_capital;

Tags: ailyin, andy, livejournal, pm
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