Fix for incorrect number of pagelinks when current page < 3
Merge pull request #2 from edwardsmit/master

Fix for incorrect number of pagelinks when current page < 3