Fixed threads pagination in Elgg 1.8.18.
Merge branch 'hotfix/1.8.0.1'