wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r21043: LJSUP-11044: There is no links to servic...

Committer: gprochaev
LJSUP-11044: There is no links to service in the user's profile

U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-01-30 09:11:29 UTC (rev 21042)
+++ trunk/htdocs/userinfo.bml	2012-01-30 14:30:19 UTC (rev 21043)
@@ -687,7 +687,7 @@
 
     ## fotobilder gallery count
     my $ct_str;
-    if ($u->get_cap('fb_account') && $u->get_cap('fb_can_upload') && $u->{fb_num_pubpics}+0 > 0) {
+    if ($u && $u->can_use_ljphoto && $u->{fb_num_pubpics}+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:
         #
@@ -713,7 +713,7 @@
         unless $u->is_identity || $u->is_syndicated;
     push @view_links, BML::ml('.details.memories2', { num_raw => $memcount, num_comma => LJ::commafy($memcount), aopts => "href='$LJ::SITEROOT/tools/memories.bml?user=$user'" })
         unless $u->is_syndicated;
-    push @view_links, BML::ml('.details.fotobilder2', { num => $ct_str, aopts => "href='$LJ::FB_SITEROOT/$user/'" })
+    push @view_links, BML::ml('.details.fotobilder2', { num => $ct_str, aopts => "href='".$u->journal_base."/pics/catalog/'" })
         if $ct_str;
     push @view_links, BML::ml('.details.userpics', { num_raw => $userpiccount, num_comma => LJ::commafy($userpiccount), aopts => "href='$LJ::SITEROOT/allpics.bml?user=$user'" })
         unless $u->is_syndicated;

Tags: bml, gprochaev, livejournal, wisest-owl
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