changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r18705: LJSUP-7776: fix

Committer: emazin
LJSUP-7776: fix
U   trunk/cgi-bin/communitylib.pl
Modified: trunk/cgi-bin/communitylib.pl
===================================================================
--- trunk/cgi-bin/communitylib.pl	2011-03-24 11:14:30 UTC (rev 18704)
+++ trunk/cgi-bin/communitylib.pl	2011-03-24 11:41:22 UTC (rev 18705)
@@ -933,11 +933,11 @@
             "<strong>" . LJ::Lang::ml('/community/manage.bml.commlist.actmembers2') . "</strong>" :
             "<a href='$LJ::SITEROOT/community/members.bml?authas=$username'>" . LJ::Lang::ml('/community/manage.bml.commlist.actmembers2') . "</a>",
     );
-
-    push @links, $page eq "wishlist" ?
+    if (LJ::SUP->is_sup_enabled($comm)) {
+        push @links, $page eq "wishlist" ?
             "<strong>" . LJ::Lang::ml('/community/manage.bml.commlist.wishlist') . "</strong>" :
-            "<a href='".$comm->wishlist_url."'>" . LJ::Lang::ml('/community/manage.bml.commlist.wishlist') . "</a>"
-            if LJ::SUP->is_sup_enabled($comm);
+            "<a href='".$comm->wishlist_url."'>" . LJ::Lang::ml('/community/manage.bml.commlist.wishlist') . "</a>";
+    }
 
     my $ret .= "<strong>" . LJ::Lang::ml('/community/manage.bml.managelinks', { user => $comm->ljuser_display }) . "</strong> ";
     $ret .= join(" | ", @links);

Tags: changelog_bot, livejournal, pl
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