Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r9386: LJSUP-6575: Need should replace all user...

Committer: gariev
LJSUP-6575: Need should replace all usernames with display names in Memorable Entries and Virtual Gifts
U   trunk/htdocs/manage/vgift.bml
Modified: trunk/htdocs/manage/vgift.bml
===================================================================
--- trunk/htdocs/manage/vgift.bml	2010-08-24 10:04:26 UTC (rev 9385)
+++ trunk/htdocs/manage/vgift.bml	2010-08-24 10:29:46 UTC (rev 9386)
@@ -17,10 +17,10 @@
         unless $u;
 
     my $ret;
-    $ret .= "<p><a href='" . $u->profile_url . "'>Back to " . $u->{'user'}
-            . "'s profile</a>";
+    $ret .= "<p><a href='" . $u->profile_url . "'>Back to " . $u->display_username . "'s profile</a>";
+
     my ($rcpt_disable_vgifts_value, $rcpt_disable_vgifts_sponsored) = LJ::run_hook("opt_disable_vgifts_value", $u);
-    $ret .= " | <a href='<?siteroot?>/shop/vgift.bml?to=$u->{'user'}'>Send " . $u->{'user'} . " a virtual gift</a></p>"
+    $ret .= " | <a href='<?siteroot?>/shop/vgift.bml?to=$u->{'user'}'>Send " . $u->display_username . " a virtual gift</a></p>"
         unless ($rcpt_disable_vgifts_value eq "all"
                 or $rcpt_disable_vgifts_value eq "anon" and not $remote
                 or $rcpt_disable_vgifts_value eq "non-friends" and not $u->is_friend($remote));

Tags: bml, gariev, ljcom
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