holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21103: LJSUP-11149: Variable for "scrapbook fil...

Committer: akanashin
LJSUP-11149: Variable for "scrapbook files" is incorrect
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-02-06 09:17:21 UTC (rev 21102)
+++ trunk/htdocs/userinfo.bml	2012-02-06 09:24:26 UTC (rev 21103)
@@ -686,6 +686,7 @@
 
     ## fotobilder gallery count
     my $ct_str;
+    my $ct;
     if ($u && (($u->get_cap('fb_account') && $u->get_cap('fb_can_upload')) || ($u->can_use_ljphoto)) && ($u->{fb_num_pubpics} + $u->prop('fotki_all_photos_count') + 0 > 0)) {
         # what we display is an estimate.  to eliminate confusion on the user end, we'll display the
         # estimate in a way that makes it clear it's not an exact number. rules are:
@@ -694,7 +695,7 @@
         #    * 10..999 == "at least 150" (rounded down to nearest 10)
         #    * 1000+   == "at least 1500" (rounded down to nearest 100)
         #
-        my $ct = $u->{fb_num_pubpics} + $u->prop('fotki_all_photos_count');
+        $ct = $u->{fb_num_pubpics} + $u->prop('fotki_all_photos_count');
         if ($ct < 10) {
             $ct_str = "<10";
         } else {
@@ -716,7 +717,7 @@
         unless $u->is_identity || $u->is_syndicated;
     push @view_links_r, '<li>' . BML::ml('.details.memories2', { num_raw => $memcount, num_comma => LJ::commafy($memcount), aopts => "href='$LJ::SITEROOT/tools/memories.bml?user=$user'" }) . '</li>'
         unless $u->is_syndicated;
-    push @view_links_r, '<li>' . BML::ml('.details.fotobilder', { num => $ct_str, aopts => "href='".$u->journal_base."/pics/catalog/'" }) . '</li>'
+    push @view_links_r, '<li>' . BML::ml('.details.fotobilder', { num_raw => $ct, num_comma => $ct_str, aopts => "href='".$u->journal_base."/pics/catalog/'" }) . '</li>'
         if $ct_str;
     push @view_links_r, '<li>' . BML::ml('.details.userpics', { num_raw => $userpiccount, num_comma => LJ::commafy($userpiccount), aopts => "href='$LJ::SITEROOT/allpics.bml?user=$user'" }) . '</li>'
         unless $u->is_syndicated;

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