Update Mod.php
This commit is contained in:
parent
930aa6ef88
commit
21e73eb253
1 changed files with 1 additions and 4 deletions
|
@ -10,7 +10,6 @@ use ForkBB\Models\Page;
|
|||
use ForkBB\Models\Pages\Profile;
|
||||
use ForkBB\Models\User\Model as User;
|
||||
use ForkBB\Models\Forum\Model as Forum;
|
||||
use ForkBB\Models\Forum\Manager as ForumManager;
|
||||
use function \ForkBB\__;
|
||||
|
||||
class Mod extends Profile
|
||||
|
@ -94,9 +93,7 @@ class Mod extends Profile
|
|||
*/
|
||||
protected function getcurForums(): array
|
||||
{
|
||||
$forums = new ForumManager($this->c);
|
||||
$forums->init($this->c->groups->get($this->curUser->group_id));
|
||||
$root = $forums->get(0);
|
||||
$root = $this->c->ForumManager->init($this->c->groups->get($this->curUser->group_id))->get(0);
|
||||
|
||||
return $root instanceof Forum ? $root->descendants : [];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue