Skip to content

Commit

Permalink
#180 Fixed the number of topics and posts per page
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Apr 17, 2022
1 parent 393d59b commit 3d3ca84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/johncms/forum/src/Models/ForumMessage.php
Expand Up @@ -18,6 +18,7 @@
use Illuminate\Database\Eloquent\Relations\HasOne;
use Johncms\Database\Eloquent\Casts\Ip;
use Johncms\Database\Eloquent\Casts\TimeToDate;
use Johncms\Settings\SiteSettings;
use Johncms\System\Legacy\Tools;
use Johncms\Users\User;

Expand Down Expand Up @@ -129,6 +130,7 @@ public function __construct(array $attributes = [])
parent::__construct($attributes);
$this->current_user = di(User::class);
$this->tools = di(Tools::class);
$this->perPage = di(SiteSettings::class)->getPerPage();
}

/**
Expand Down
2 changes: 2 additions & 0 deletions modules/johncms/forum/src/Models/ForumTopic.php
Expand Up @@ -18,6 +18,7 @@
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Johncms\Database\Eloquent\Casts\Serialize;
use Johncms\Settings\SiteSettings;
use Johncms\System\Legacy\Tools;
use Johncms\Users\User;

Expand Down Expand Up @@ -152,6 +153,7 @@ public function __construct(array $attributes = [])
parent::__construct($attributes);
$this->current_user = di(User::class);
$this->tools = di(Tools::class);
$this->perPage = di(SiteSettings::class)->getPerPage();
}

/**
Expand Down

0 comments on commit 3d3ca84

Please sign in to comment.