Parcourir la source

Minor update Profile\View page

Visman il y a 4 ans
Parent
commit
dd43941cab
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      app/Models/Pages/Profile/View.php

+ 4 - 4
app/Models/Pages/Profile/View.php

@@ -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) {