From b2094f4bdcb508701063914f69e1bff29375a477 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 26 Nov 2015 03:00:28 +0100 Subject: Handler::Discussions: Fix display of username when editing post --- lib/VNDB/Handler/Discussions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VNDB/Handler') diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index ae86010d..79de9c40 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -300,7 +300,7 @@ sub edit { '_postedit_edit'; $self->htmlHeader(title => $title, noindex => 1); $self->htmlForm({ frm => $frm, action => $url }, 'postedit' => [$title, - [ static => label => mt('_postedit_form_username'), content => $self->{l10n}->userstr($self->authInfo->{id}, $self->authInfo->{username}) ], + [ static => label => mt('_postedit_form_username'), content => $self->{l10n}->userstr($p ? ($p->{uid}, $p->{username}) : ($self->authInfo->{id}, $self->authInfo->{username})) ], !$tid || $num == 1 ? ( [ input => short => 'title', name => mt('_postedit_form_title') ], [ input => short => 'boards', name => mt('_postedit_form_boards') ], -- cgit v1.2.3