changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r18229: LJSUP-7776: wishlist links for notificat...

Committer: emazin
LJSUP-7776: wishlist links for notifications
U   trunk/cgi-bin/LJ/Event/Birthday.pm
Modified: trunk/cgi-bin/LJ/Event/Birthday.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/Birthday.pm	2011-02-07 12:15:25 UTC (rev 18228)
+++ trunk/cgi-bin/LJ/Event/Birthday.pm	2011-02-07 13:23:36 UTC (rev 18229)
@@ -2,6 +2,7 @@
 
 use strict;
 use base 'LJ::Event';
+use LJ::WishList;
 use Carp qw(croak);
 
 sub new {
@@ -68,6 +69,9 @@
     my $gifturl = $self->bdayuser->gift_url({ item => 'vgift' });
     my $ret .= "<div class='actions'>";
     $ret .= " <a href='$gifturl'>Send a Gift</a>";
+    if (LJ::WishList->have_current($self->bdayuser)) {
+        $ret .= " View user's <a href='".$self->bdayuser->wishlist_url."'>Wishlist</a>";
+    }
     $ret .= "</div>";
 
     return $ret;

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