Discussions Controller: Fix max pages calculation.