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

[livejournal] r21166: LJSUP-11239: (Incorrect link in profile ...

Committer: gprochaev
LJSUP-11239: (Incorrect link in profile to new PhotoHosting)

U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-02-13 11:45:23 UTC (rev 21165)
+++ trunk/htdocs/userinfo.bml	2012-02-13 11:53:37 UTC (rev 21166)
@@ -767,7 +767,14 @@
     push @view_links_l, '<li>' . BML::ml('.details.supportpoints2', { aopts => "href='$LJ::SITEROOT/support/'", num => LJ::commafy($supportpoints), num_raw => $supportpoints }) . '</li>' if $supportpoints;
     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_raw => $ct, num_comma => $ct_str, aopts => "href='".$u->journal_base."/pics/catalog/'" }) . '</li>'
+    my $fh_url = "";
+    if ($u && $u->get_cap('fb_account') && $u->get_cap('fb_can_upload')) {
+        $fh_url = "href='$LJ::FB_SITEROOT/$user/'";
+    }
+    if ($u && $u->can_use_ljphoto) {
+        $fh_url = "href='".$u->journal_base."/pics/catalog/'";
+    }
+    push @view_links_r, '<li>' . BML::ml('.details.fotobilder', { num_raw => $ct, num_comma => $ct_str, aopts => $fh_url }) . '</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: 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