Update getPageLinks.php

a little better