Procházet zdrojové kódy

Minor update Profile\View page

Visman před 4 roky
rodič
revize
dd43941cab
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  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) {