Browse Source

Small change

Visman 4 years ago
parent
commit
decb014b9c
2 changed files with 8 additions and 3 deletions
  1. 2 1
      app/Models/Pages/Admin/Users/NewUser.php
  2. 6 2
      app/Models/Pages/Delete.php

+ 2 - 1
app/Models/Pages/Admin/Users/NewUser.php

@@ -65,7 +65,8 @@ class NewUser extends Users
 
 
                     $this->c->users->insert($user);
                     $this->c->users->insert($user);
 
 
-                    return $this->c->Redirect->page('User', ['id' => $user->id, 'name' => $user->username])->message('New user added redirect');
+                    return $this->c->Redirect->page('User', ['id' => $user->id, 'name' => $user->username])
+                        ->message('New user added redirect');
                 }
                 }
 
 
                 $this->fIswev = $v->getErrors();
                 $this->fIswev = $v->getErrors();

+ 6 - 2
app/Models/Pages/Delete.php

@@ -55,10 +55,14 @@ class Delete extends Page
             }
             }
 
 
             if ($deleteTopic) {
             if ($deleteTopic) {
-                $redirect = $this->c->Redirect->page('Forum', ['id' => $topic->forum_id, 'name' => $topic->parent->forum_name])->message('Topic del redirect');
+                $redirect = $this->c->Redirect
+                    ->page('Forum', ['id' => $topic->forum_id, 'name' => $topic->parent->forum_name])
+                    ->message('Topic del redirect');
                 $this->c->topics->delete($topic);
                 $this->c->topics->delete($topic);
             } else {
             } else {
-                $redirect = $this->c->Redirect->page('ViewPost', ['id' => $this->c->posts->previousPost($post)])->message('Post del redirect');
+                $redirect = $this->c->Redirect
+                    ->page('ViewPost', ['id' => $this->c->posts->previousPost($post)])
+                    ->message('Post del redirect');
                 $this->c->posts->delete($post);
                 $this->c->posts->delete($post);
             }
             }