Browse Source

Use current Forums

Visman 1 year ago
parent
commit
13598f350e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/Models/Forum/Delete.php
  2. 1 1
      app/Models/Forum/UpdateUsername.php

+ 1 - 1
app/Models/Forum/Delete.php

@@ -42,7 +42,7 @@ class Delete extends Action
                 $uids[$arg->id] = $arg->id;
                 $isUser         = 1;
             } elseif ($arg instanceof Forum) {
-                if (! $this->c->forums->get($arg->id) instanceof Forum) {
+                if (! $this->manager->get($arg->id) instanceof Forum) {
                     throw new RuntimeException('Forum unavailable');
                 }
 

+ 1 - 1
app/Models/Forum/UpdateUsername.php

@@ -44,7 +44,7 @@ class UpdateUsername extends Action
                 $isMod = true;
                 $forum->modAdd($user); // переименование модератора
 
-                $this->c->forums->update($forum);
+                $this->manager->update($forum);
             }
         }