Discussions Controller: Fix max pages calculation.
Merge pull request #2184 from vanilla/hotfix/MaxDiscussionLimit

Discussions Controller: Fix max pages calculation.