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

[ljcom] r9345: LJSUP-6410

Committer: gprochaev
LJSUP-6410

shop/renameaccount.bml shows renaming one username when you're really renaming another one

U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2010-08-17 08:10:40 UTC (rev 9344)
+++ trunk/bin/upgrading/en_LJ.dat	2010-08-17 08:11:06 UTC (rev 9345)
@@ -5361,6 +5361,8 @@
 
 shop.view.proceed=Proceed to checkout →
 
+shop.view.renameaccount.authas=You are now working as the username '[[username]]'.
+
 shop.view.renameaccount.title=Rename Account
 
 shop.view.renameaccount.current=Current username

Modified: trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm	2010-08-17 08:10:40 UTC (rev 9344)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm	2010-08-17 08:11:06 UTC (rev 9345)
@@ -48,6 +48,8 @@
         # work around a bug in HTML::Template::Pro that prevents a code like
         # ml('string', param, ljuser(username)) from working properly
         $ret{'current_ljuser'} = $current->ljuser_display;
+        $ret{'current_username'} = LJ::Lang::ml ('shop.view.renameaccount.authas', { username => $current->user });
+        $ret{'is_authas'} = $self->authas ? 1 : 0;
     } else {
         $ret{'authas'} = [ LJ::get_authas_list($remote, $authas_opts) ];
     }

Tags: dat, ljcom, pm, 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