Follow-up to r1157 / 8fa7184171c11436e2910f3686d6d0f17e0cc617
- Used the correct total for Pagination so that it works for categories