[ljcom] r9358: LJSUP-6410. shop/renameaccount.bml shows...
Committer: gprochaev
LJSUP-6410. shop/renameaccount.bml shows renaming one username when you're really renaming another oneU trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm 2010-08-19 08:30:36 UTC (rev 9357)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/RenameAccount.pm 2010-08-19 08:53:09 UTC (rev 9358)
@@ -51,7 +51,7 @@
# 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;
+ $ret{'is_authas'} = $current->user eq $remote->user ? 0 : 1;
} else {
$ret{'authas'} = [ LJ::get_authas_list($remote, $authas_opts) ];
}
