Little fix for pager

$pager points to global pager variable, which is an array collection of all pagers, so the link key can be read out only from  $thisPager variable which is the actual displayed pager.
Merge pull request #561 from ntomka/master

Little fix for pager