- fix: can't see the send private message link
This commit is contained in:
parent
46994306f2
commit
db6ea6d793
3 changed files with 4 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
7.4.6
|
||||
- fix: can't see the send private message link
|
||||
|
||||
|
||||
7.4.5
|
||||
|
|
|
|||
|
|
@ -304,6 +304,9 @@ sub www_viewProfile {
|
|||
if ($session->user->userId eq $session->form->process("uid")) {
|
||||
$vars->{'profile.accountOptions'} = WebGUI::Operation::Shared::accountOptions($session);
|
||||
}
|
||||
else {
|
||||
push(@{$vars->{'profile.accountOptions'}}, {'options.display' => '<a href="'.$session->url->page('op=sendPrivateMessage;uid='.$session->form->process("uid")).'">'.$i18n->get('send private message').'</a>'});
|
||||
}
|
||||
|
||||
return $session->style->userStyle(WebGUI::Asset::Template->new($session,"PBtmpl0000000000000052")->process($vars));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,12 +69,6 @@ TODO: DOCUMENT ME
|
|||
push(@array, {'options.display' => '<a href="'.$session->url->page('op=redeemSubscriptionCode').'">'.$i18n->get('redeem code', 'Subscription').'</a>'});
|
||||
}
|
||||
|
||||
my $uid = $session->form->get("uid");
|
||||
if($op eq "viewProfile" && $uid ne $session->user->userId) {
|
||||
push(@array, {'options.display' => '<a href="'.$session->url->page('op=sendPrivateMessage;uid='.$uid).'">'.$i18n->get('send private message').'</a>'});
|
||||
}
|
||||
|
||||
|
||||
if ($session->setting->get('userInvitationsEnabled')) {
|
||||
push @array, {
|
||||
'options.display' => sprintf('<a href=%s>%s</a>', $session->url->page('op=inviteUser'), $i18n->get('invite a friend')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue