瀏覽代碼

Use current Forums

Visman 1 年之前
父節點
當前提交
13598f350e
共有 2 個文件被更改,包括 2 次插入2 次删除
  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);
             }
         }