Minor update Profile\View page

This commit is contained in:
Visman 2021-03-30 14:07:19 +07:00
parent 52fa45fc74
commit dd43941cab

View file

@ -151,16 +151,16 @@ class View extends Profile
'action' => Cnst::ACTION_SEND,
'more1' => $this->curUser->id,
];
$pmArgs += [
'more2' => $this->c->Csrf->createHash('PMAction', $pmArgs),
];
$fields['pm'] = [
'class' => 'pline',
'type' => 'link',
'caption' => 'PM',
'value' => __('Send PM'),
'href' => $this->c->Router->link(
'PMAction',
$pmArgs + ['more2' => $this->c->Csrf->createHash('PMAction', $pmArgs)]
),
'href' => $this->c->Router->link('PMAction', $pmArgs),
];
}
if ($this->rules->viewEmail) {